mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
Migrate jest to v29
This commit is contained in:
parent
944de159bd
commit
15aee6cf3f
|
|
@ -1,7 +1,6 @@
|
|||
const tsConfig = require('./tsconfig');
|
||||
|
||||
module.exports = {
|
||||
preset: "ts-jest",
|
||||
testEnvironment: "jsdom",
|
||||
testRunner: "jest-jasmine2",
|
||||
setupFiles: [
|
||||
|
|
@ -11,16 +10,19 @@ module.exports = {
|
|||
"./e2e_tests/failfast.js"
|
||||
],
|
||||
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
||||
globals: {
|
||||
"ts-jest": {
|
||||
tsconfig: {
|
||||
...tsConfig.compilerOptions,
|
||||
transform: {
|
||||
"^.+\\.tsx?$": [
|
||||
"ts-jest",
|
||||
{
|
||||
tsconfig: {
|
||||
...tsConfig.compilerOptions,
|
||||
types: ["jest", "node", "@types/firefox-webext-browser"]
|
||||
},
|
||||
diagnostics: {
|
||||
ignoreCodes: [151001]
|
||||
},
|
||||
}
|
||||
},
|
||||
diagnostics: {
|
||||
ignoreCodes: [151001]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
moduleNameMapper: {
|
||||
"@src/(.*)": "<rootDir>/src/$1"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
"devDependencies": {
|
||||
"@types/css": "0.0.38",
|
||||
"@types/firefox-webext-browser": "^120.0.4",
|
||||
"@types/jest": "^27.5.0",
|
||||
"@types/jest": "29.5.12",
|
||||
"@types/nearley": "^2.11.5",
|
||||
"@types/selenium-webdriver": "^4.1.10",
|
||||
"@typescript-eslint/eslint-plugin": "5.25.0",
|
||||
|
|
@ -47,13 +47,14 @@
|
|||
"geckodriver": "^5.0.0",
|
||||
"git-format-staged": "^4.0.1",
|
||||
"jasmine-fail-fast": "^2.0.1",
|
||||
"jest": "^27.5.1",
|
||||
"jest-jasmine2": "^27.5.1",
|
||||
"jest": "29.7.0",
|
||||
"jest-environment-jsdom": "29.7.0",
|
||||
"jest-jasmine2": "29.7.0",
|
||||
"jest-webextension-mock": "^4.0.0",
|
||||
"marked": "^12.0.1",
|
||||
"prettier": "^3.4.2",
|
||||
"selenium-webdriver": "^4.7.1",
|
||||
"ts-jest": "^27.1.5",
|
||||
"ts-jest": "29.4.11",
|
||||
"typescript": "4.7.4",
|
||||
"web-ext": "^7.10.0",
|
||||
"yaml-lint": "^1.7.0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue