Updated to jest 28

This commit is contained in:
Alejandro Celaya 2022-05-01 10:19:38 +02:00
parent 57a2a03469
commit ed7bb20bbb
3 changed files with 9835 additions and 8361 deletions

View file

@ -19,7 +19,9 @@ module.exports = {
setupFilesAfterEnv: ['<rootDir>/config/jest/setupTests.ts'], setupFilesAfterEnv: ['<rootDir>/config/jest/setupTests.ts'],
testMatch: ['<rootDir>/test/**/*.test.{ts,tsx}'], testMatch: ['<rootDir>/test/**/*.test.{ts,tsx}'],
testEnvironment: 'jsdom', testEnvironment: 'jsdom',
testURL: 'http://localhost', testEnvironmentOptions: {
url: 'http://localhost',
},
transform: { transform: {
'^.+\\.(ts|tsx|js)$': '<rootDir>/node_modules/babel-jest', '^.+\\.(ts|tsx|js)$': '<rootDir>/node_modules/babel-jest',
'^(?!.*\\.(ts|tsx|js|json)$)': '<rootDir>/config/jest/fileTransform.js', '^(?!.*\\.(ts|tsx|js|json)$)': '<rootDir>/config/jest/fileTransform.js',

18185
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -89,15 +89,16 @@
"@types/uuid": "^8.3.4", "@types/uuid": "^8.3.4",
"@wojtekmaj/enzyme-adapter-react-17": "0.6.5", "@wojtekmaj/enzyme-adapter-react-17": "0.6.5",
"adm-zip": "^0.5.9", "adm-zip": "^0.5.9",
"babel-jest": "^27.5.1", "babel-jest": "^28.0.3",
"chalk": "^5.0.1", "chalk": "^5.0.1",
"dart-sass": "^1.25.0", "dart-sass": "^1.25.0",
"enzyme": "^3.11.0", "enzyme": "^3.11.0",
"eslint": "^8.12.0", "eslint": "^8.12.0",
"identity-obj-proxy": "^3.0.0", "identity-obj-proxy": "^3.0.0",
"jest": "^27.5.1", "jest": "^28.0.3",
"jest-canvas-mock": "^2.4.0", "jest-canvas-mock": "^2.4.0",
"react-scripts": "^5.0.0", "jest-environment-jsdom": "^28.0.2",
"react-scripts": "^5.0.1",
"resize-observer-polyfill": "^1.5.1", "resize-observer-polyfill": "^1.5.1",
"sass": "^1.49.9", "sass": "^1.49.9",
"serve": "^13.0.2", "serve": "^13.0.2",