Skip to content

Commit 5df3bfe

Browse files
committed
fix: remove duplicate Jest configuration from package.json
Remove the jest configuration section from package.json to resolve the "Multiple configurations found" error. All Jest configuration is now centralized in jest.config.js. This fixes the CI/CD test execution error where Jest was finding configurations in both jest.config.js and package.json.
1 parent d985ad4 commit 5df3bfe

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

package.json

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -34,41 +34,5 @@
3434
"jest-environment-jsdom": "^29.7.0",
3535
"jest-localstorage-mock": "^2.4.26",
3636
"luxon": "^3.4.4"
37-
},
38-
"jest": {
39-
"testEnvironment": "jsdom",
40-
"setupFilesAfterEnv": [
41-
"<rootDir>/tests/frontend/setup.js"
42-
],
43-
"moduleNameMapper": {
44-
"\\.(css|less|scss|sass)$": "<rootDir>/tests/frontend/__mocks__/styleMock.js",
45-
"\\.(jpg|jpeg|png|gif|svg)$": "<rootDir>/tests/frontend/__mocks__/fileMock.js"
46-
},
47-
"collectCoverageFrom": [
48-
"static/js/**/*.js",
49-
"!static/js/**/*.min.js",
50-
"!static/js/jquery*.js",
51-
"!static/js/bootstrap*.js",
52-
"!static/js/popper*.js",
53-
"!static/js/lunr*.js",
54-
"!static/js/store*.js",
55-
"!static/js/luxon.js",
56-
"!static/js/js-year-calendar*.js",
57-
"!static/js/ouical*.js"
58-
],
59-
"coverageThreshold": {
60-
"global": {
61-
"branches": 70,
62-
"functions": 75,
63-
"lines": 80,
64-
"statements": 80
65-
}
66-
},
67-
"testMatch": [
68-
"**/tests/frontend/**/*.test.js"
69-
],
70-
"globals": {
71-
"IS_TESTING": true
72-
}
7337
}
7438
}

0 commit comments

Comments
 (0)