mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-22 06:18:41 +00:00
Update jest dependencies
This commit is contained in:
@@ -4,6 +4,9 @@ const babelConfig = require('./babel.config.js');
|
||||
|
||||
module.exports = {
|
||||
coveragePathIgnorePatterns: ['/node_modules/', '<rootDir>/packages/react-native-web/src/vendor/'],
|
||||
fakeTimers: {
|
||||
enableGlobally: true
|
||||
},
|
||||
modulePathIgnorePatterns: [
|
||||
'<rootDir>/packages/benchmarks/',
|
||||
'<rootDir>/packages/react-native-web-docs/',
|
||||
@@ -18,7 +21,6 @@ module.exports = {
|
||||
},
|
||||
testEnvironment: 'jsdom',
|
||||
testMatch: ['**/__tests__/**/?(*-)+(spec|test).[jt]s?(x)'],
|
||||
timers: 'fake',
|
||||
transform: {
|
||||
'\\.[jt]sx?$': ['babel-jest', babelConfig()]
|
||||
}
|
||||
|
||||
@@ -4,6 +4,9 @@ const babelConfig = require('./babel.config.js');
|
||||
|
||||
module.exports = {
|
||||
coveragePathIgnorePatterns: ['/node_modules/', '<rootDir>/packages/react-native-web/src/vendor/'],
|
||||
fakeTimers: {
|
||||
enableGlobally: true
|
||||
},
|
||||
modulePathIgnorePatterns: [
|
||||
'<rootDir>/packages/benchmarks/',
|
||||
'<rootDir>/packages/react-native-web-docs/',
|
||||
@@ -17,7 +20,6 @@ module.exports = {
|
||||
},
|
||||
testEnvironment: 'node',
|
||||
testMatch: ['**/__tests__/**/?(*-)+(spec|test).node.[jt]s?(x)'],
|
||||
timers: 'fake',
|
||||
transform: {
|
||||
'\\.[jt]sx?$': ['babel-jest', babelConfig()]
|
||||
}
|
||||
|
||||
Generated
+2166
-1938
File diff suppressed because it is too large
Load Diff
+4
-3
@@ -32,9 +32,9 @@
|
||||
"@babel/preset-env": "^7.18.6",
|
||||
"@babel/preset-flow": "^7.18.6",
|
||||
"@babel/preset-react": "^7.18.6",
|
||||
"@testing-library/react": "^11.2.5",
|
||||
"@testing-library/react": "^12.1.5",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"babel-jest": "^27.5.1",
|
||||
"babel-jest": "^28.1.2",
|
||||
"babel-loader": "^8.2.2",
|
||||
"babel-plugin-add-module-exports": "^1.0.4",
|
||||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
||||
@@ -52,7 +52,8 @@
|
||||
"glob": "^7.1.6",
|
||||
"husky": "^4.3.8",
|
||||
"inline-style-prefixer": "^6.0.0",
|
||||
"jest": "^27.5.1",
|
||||
"jest": "^28.1.2",
|
||||
"jest-environment-jsdom": "^28.1.2",
|
||||
"lint-staged": "^10.5.4",
|
||||
"minimist": "^1.2.6",
|
||||
"npm-run-all": "^4.1.3",
|
||||
|
||||
Reference in New Issue
Block a user