From a5a4bc4a807c46cefb628369ce9e034d73f05d11 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Sat, 28 Dec 2024 17:40:09 -0500 Subject: [PATCH] Fix Testing --- .github/workflows/eslint.yml | 7 +- .gitignore | 1 - .prettierignore | 1 + __tests__/__snapshots__/index.test.tsx.snap | 73 +++++++++++++++++++++ 4 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 __tests__/__snapshots__/index.test.tsx.snap diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index b990a7d..34577fd 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -20,11 +20,16 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 'latest' + - name: Configure Corepack run: corepack enable - name: Install Dependencies - run: yarn install + run: yarn install --frozen-lockfile - name: Run ESLint run: npx next lint diff --git a/.gitignore b/.gitignore index 33421a6..510e90a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ # testing /coverage -/__tests__/__snapshots__ # next.js /.next/ diff --git a/.prettierignore b/.prettierignore index a6020e0..7d3f0bd 100644 --- a/.prettierignore +++ b/.prettierignore @@ -6,6 +6,7 @@ # testing /coverage +/__tests__/__snapshots__ # next.js /.next/ diff --git a/__tests__/__snapshots__/index.test.tsx.snap b/__tests__/__snapshots__/index.test.tsx.snap new file mode 100644 index 0000000..d31b915 --- /dev/null +++ b/__tests__/__snapshots__/index.test.tsx.snap @@ -0,0 +1,73 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Home renders homepage unchanged 1`] = ` +
+
+
+
+ + + + + + + + + No 1 task management app +
+

+ Tasko helps teams move +

+
+ Work forward +
+
+
+ Collaborate, manage projects, and reach new productivity peaks. From high rises to the home office, the way your team works is unique - accomplish it all with Tasko. +
+ + Get Tasko for free + +
+
+`;