Skip to content

Commit

Permalink
test: fix jest testing environment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Sep 21, 2023
1 parent b63cbdb commit c8b9389
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 13 deletions.
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** @type {import('jest').Config} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
moduleDirectories: ['packages', 'node_modules'],
collectCoverage: true,
coverageReporters: ['text'],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lerna": "^7.3.0",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
Expand Down
Loading

0 comments on commit c8b9389

Please sign in to comment.