Skip to content

Commit

Permalink
Added tests for router
Browse files Browse the repository at this point in the history
  • Loading branch information
tocs77 committed Aug 2, 2023
1 parent 3731c0b commit b30d01b
Show file tree
Hide file tree
Showing 15 changed files with 474 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
. "$(dirname -- "$0")/_/husky.sh"

npm run build
npm run check
npx lint-staged
npm run check:style
npm run test:unit
npm run test:ui
2 changes: 1 addition & 1 deletion config/jest/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default {
// forceCoverageMatch: [],

// A path to a module which exports an async function that is triggered once before all test suites
// globalSetup: undefined,
//globalSetup: './jest.global-setup.ts',

// A path to a module which exports an async function that is triggered once after all test suites
// globalTeardown: undefined,
Expand Down
1 change: 1 addition & 0 deletions config/jest/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import '@testing-library/jest-dom';
global.fetch = require('whatwg-fetch');
Loading

0 comments on commit b30d01b

Please sign in to comment.