Add internal jest-raw-loader wrapped appropriately for jest28+

This commit is contained in:
Dannon Baker
2022-12-07 06:33:37 -05:00
parent e59bb0a2e0
commit 99d4f159b9
4 changed files with 4 additions and 7 deletions
-1
View File
@@ -164,7 +164,6 @@
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-location-mock": "^1.0.9",
"jest-raw-loader": "^1.0.1",
"json-loader": "^0.5.7",
"karma": "^6.3.16",
"karma-chrome-launcher": "^3.1.0",
+3
View File
@@ -0,0 +1,3 @@
module.exports = {
process: content => { return { code: "module.exports = " + JSON.stringify(content)}}
};
+1 -1
View File
@@ -186,7 +186,7 @@ module.exports = {
"^.+\\.js$": "babel-jest",
"^.*\\.(vue)$": "@vue/vue2-jest",
"^.+\\.ya?ml$": "<rootDir>/tests/jest/yaml-jest.js",
"^.+\\.txt$": "jest-raw-loader",
"^.+\\.txt$": "<rootDir>/tests/jest/jest-raw-loader.js",
},
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
-5
View File
@@ -6623,11 +6623,6 @@ jest-pnp-resolver@^1.2.2:
resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c"
integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==
jest-raw-loader@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/jest-raw-loader/-/jest-raw-loader-1.0.1.tgz#ce9f56d54650f157c4a7d16d224ba5d613bcd626"
integrity sha512-g9oaAjeC4/rIJk1Wd3RxVbOfMizowM7LSjEJqa4R9qDX0OjQNABXOhH+GaznUp+DjTGVPi2vPPbQXyX87DOnYg==
jest-regex-util@^29.2.0:
version "29.2.0"
resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-29.2.0.tgz#82ef3b587e8c303357728d0322d48bbfd2971f7b"