From 3d443e421c5c436b61484ee09ca82a7792f72450 Mon Sep 17 00:00:00 2001 From: Aaron Yarborough Date: Fri, 22 Mar 2024 17:31:14 +0000 Subject: [PATCH] test: fix tests --- src/components/Header/Header.test.jsx | 2 +- util/pre-deploy.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Header/Header.test.jsx b/src/components/Header/Header.test.jsx index 2bb6443..963d82f 100644 --- a/src/components/Header/Header.test.jsx +++ b/src/components/Header/Header.test.jsx @@ -11,7 +11,7 @@ describe('Header', () => { it('renders correct navigation links', () => { render(
) - const links = ['Home', 'Writing', 'Recipess', 'Fun', 'CV'] + const links = ['Home', 'Writing', 'Recipes', 'Fun', 'CV'] links.forEach(link => { expect(screen.getByText(link)).toBeInTheDocument() }) diff --git a/util/pre-deploy.sh b/util/pre-deploy.sh index e2f73d5..cbc4d01 100755 --- a/util/pre-deploy.sh +++ b/util/pre-deploy.sh @@ -3,14 +3,16 @@ set -e # Exit with nonzero exit code if anything fails echo "Preparing for deployment..." -echo "Building site..." +echo "- Running tests..." +npx jest + +echo "- Building site..." npm run build -echo "Commit any build artifacts..." +echo "- Commit any build artifacts..." git add . git commit -m "chore: build artifacts" -echo "Running tests..." -npx jest + echo "Finished preparing for deployment." \ No newline at end of file