Skip to content

Commit 7ae1d97

Browse files
committedMay 16, 2022
maint(Build): Compatibility with Jest 28.
Remove jest-raw-loader dependency and add own loader based on keplersj/jest-raw-loader#239 for compatibility with Jest 28.
1 parent 5679db0 commit 7ae1d97

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

‎jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
watchPlugins: ["jest-watch-typeahead/filename", "jest-watch-typeahead/testname"],
55
transform: {
66
"^.+\\.[t|j]sx?$": "babel-jest",
7-
"\\.(html|xml|svg)$": "jest-raw-loader",
7+
"\\.(html|xml|svg)$": "<rootDir>/webpack/jest-raw-loader.js",
88
},
99
moduleNameMapper: {
1010
"\\.(css|less|sass|scss)$": "identity-obj-proxy",

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"inspectpack": "^4.7.1",
6060
"jest": "^28.1.0",
6161
"jest-environment-jsdom": "^28.1.0",
62-
"jest-raw-loader": "^1.0.1",
6362
"jest-watch-typeahead": "^1.1.0",
6463
"prettier": "^2.6.2",
6564
"regenerator-runtime": "^0.13.9",

0 commit comments

Comments
 (0)