Skip to content

Commit ae54301

Browse files
committed
fix: fixed issue with jest test not working correctly
1 parent 5fd8914 commit ae54301

File tree

3 files changed

+31
-7
lines changed

3 files changed

+31
-7
lines changed

jest.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const config = {
7272
// after the jest test environment is installed
7373
// Can access globals
7474
setupFilesAfterEnv: [
75-
'jest-extended/all',
75+
'jest-extended',
7676
'<rootDir>/tests/setupAfterEnv.ts'
7777
],
7878
moduleNameMapper: {

package-lock.json

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@
3232
"lint-shell": "find ./src ./tests ./scripts -type f -regextype posix-extended -regex '.*\\.(sh)' -exec shellcheck {} +",
3333
"docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src",
3434
"test": "node ./scripts/test.mjs"
35-
},
35+
},
3636
"devDependencies": {
37-
"tsconfig-paths": "^3.9.0",
38-
"@swc/jest": "^0.2.29",
39-
"@types/jest": "^29.5.2",
40-
"jest": "^29.6.2",
41-
"jest-junit": "^16.0.0",
4237
"@eslint/compat": "^1.2.5",
4338
"@swc/core": "1.3.82",
39+
"@swc/jest": "^0.2.29",
40+
"@types/jest": "^29.5.2",
4441
"@types/node": "^20.5.7",
4542
"@typescript-eslint/eslint-plugin": "^8.27.0",
4643
"@typescript-eslint/parser": "^8.27.0",
@@ -49,8 +46,12 @@
4946
"eslint-config-prettier": "^8.8.0",
5047
"eslint-plugin-import": "^2.31.0",
5148
"eslint-plugin-prettier": "^5.0.0-alpha.2",
49+
"jest": "^29.6.2",
50+
"jest-extended": "^4.0.2",
51+
"jest-junit": "^16.0.0",
5252
"prettier": "^3.0.0",
5353
"shx": "^0.3.4",
54+
"tsconfig-paths": "^3.9.0",
5455
"tsx": "^3.12.7",
5556
"typedoc": "^0.24.8",
5657
"typescript": "^5.1.6"

0 commit comments

Comments
 (0)