зеркало из https://github.com/mozilla/pontoon.git
Update to jest 29 & refresh npm lockfile (#2673)
This commit is contained in:
Родитель
a1cbdb5424
Коммит
fdf94d3e1b
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
11
package.json
11
package.json
|
@ -50,7 +50,7 @@
|
|||
"@types/escape-html": "^1.0.1",
|
||||
"@types/history": "^4.7.8",
|
||||
"@types/javascript-time-ago": "^2.0.3",
|
||||
"@types/jest": "^27.4.0",
|
||||
"@types/jest": "^29.2.4",
|
||||
"@types/linkify-it": "^3.0.1",
|
||||
"@types/lodash.escaperegexp": "^4.1.6",
|
||||
"@types/lodash.isempty": "^4.4.6",
|
||||
|
@ -74,15 +74,16 @@
|
|||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-react": "^7.22.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest-each": "^27.5.1",
|
||||
"jest-watch-typeahead": "^1.0.0",
|
||||
"jest": "^29.3.1",
|
||||
"jest-each": "^29.3.1",
|
||||
"jest-environment-jsdom": "^29.3.1",
|
||||
"jest-watch-typeahead": "^2.2.1",
|
||||
"prettier": "^2.5.1",
|
||||
"rollup": "^2.67.2",
|
||||
"rollup-plugin-css-only": "^3.1.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"sinon": "^13.0.2",
|
||||
"ts-jest": "^27.1.3",
|
||||
"ts-jest": "^29.0.3",
|
||||
"typescript": "^4.2.4",
|
||||
"utility-types": "^3.10.0"
|
||||
},
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/** @type {import('@jest/types').Config.InitialOptions} */
|
||||
module.exports = {
|
||||
testEnvironment: 'jsdom',
|
||||
testURL: 'https://nowhere.com/at/all',
|
||||
testEnvironmentOptions: { url: 'https://nowhere.com/at/all' },
|
||||
moduleNameMapper: {
|
||||
'\\.(css|less)$': 'identity-obj-proxy',
|
||||
},
|
||||
|
|
|
@ -13,14 +13,9 @@ module.exports = {
|
|||
],
|
||||
testEnvironment: 'jsdom',
|
||||
preset: 'ts-jest',
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
isolatedModules: true,
|
||||
},
|
||||
},
|
||||
transform: {
|
||||
'\\.jsx?$': ['babel-jest', { configFile: '../babel.config.json' }],
|
||||
'\\.tsx?$': 'ts-jest',
|
||||
'\\.tsx?$': ['ts-jest', { isolatedModules: true }],
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$',
|
||||
|
|
Загрузка…
Ссылка в новой задаче