diff --git a/.github/workflows/test-runner.yaml b/.github/workflows/test-runner.yaml index 430c3b5d..dc351d09 100644 --- a/.github/workflows/test-runner.yaml +++ b/.github/workflows/test-runner.yaml @@ -20,10 +20,5 @@ jobs: uses: anuraag016/Jest-Coverage-Diff@master with: fullCoverageDiff: false - runCommand: 'yarn jest --collectCoverageFrom=''["src/**/*.{js,jsx,ts,tsx}"]'' --coverage --collectCoverage=true --coverageDirectory=''./'' --coverageReporters=''json-summary'' --forceExit --detectOpenHandles __tests__/**/*.test.*' + runCommand: "yarn jest --coverage --collectCoverage=true --coverageDirectory='./' --coverageReporters='json-summary' --forceExit --detectOpenHandles" delta: 0.5 - # - name: Upload coverage reports to Codecov - # uses: codecov/codecov-action@v3 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # files: coverage/lcov.info diff --git a/.gitignore b/.gitignore index 0e342ebd..07829c5b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ # testing /coverage -.coverage-summary.json +coverage-summary.json # next.js /.next/ diff --git a/__tests__/Footer.test.tsx b/__tests__/Footer.test.tsx new file mode 100644 index 00000000..81097417 --- /dev/null +++ b/__tests__/Footer.test.tsx @@ -0,0 +1,14 @@ +import { render, screen } from '@testing-library/react' + +import Footer from 'components/Footer' + +import packageJSON from '../package.json' + +describe('