Skip to content

Commit

Permalink
chore: add test env
Browse files Browse the repository at this point in the history
  • Loading branch information
Col0ring committed Jul 17, 2022
1 parent 8cd2ef0 commit 6c667ae
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 398 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default {
// snapshotSerializers: [],

// The test environment that will be used for testing
testEnvironment: 'jsdom',
testEnvironment: 'node',

// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,20 @@
"@types/jest": "^28.1.6",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/react-test-renderer": "^18.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.19.0",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"prettier-plugin-organize-imports": "^3.0.0",
"prettier-plugin-packagejson": "^2.2.18",
"react": "^18.2.0",
"react-dom": "^18.0.0",
"react-router": "^6.3.0",
"react-test-renderer": "^18.2.0",
"rimraf": "^3.0.2",
"stylelint": "^14.9.1",
"ts-jest": "^28.0.6",
Expand Down
Loading

0 comments on commit 6c667ae

Please sign in to comment.