Skip to content

Commit

Permalink
upgrade to jest 24
Browse files Browse the repository at this point in the history
  • Loading branch information
dblatcher committed Oct 19, 2023
1 parent 146e14a commit f522ef2
Show file tree
Hide file tree
Showing 3 changed files with 792 additions and 566 deletions.
8 changes: 4 additions & 4 deletions fronts-client/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js'],
transform: {
'^.+\\.(ts|tsx|js)$': 'ts-jest'
'^.+\\.(ts|tsx|js)$': 'ts-jest',
},
testMatch: ['<rootDir>/src/**/*.spec.+(ts|tsx|js)'],
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!(panda-session|grid-util-js)/)'
'<rootDir>/node_modules/(?!(panda-session|grid-util-js)/)',
],
setupTestFrameworkScriptFile: './node_modules/jest-enzyme/lib/index.js',
setupFiles: ['./config/setupTest.js'],
moduleDirectories: ['<rootDir>/src', 'node_modules'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/mocks/fileMock.js',
'\\.css$': '<rootDir>/mocks/styleMock.js'
}
'\\.css$': '<rootDir>/mocks/styleMock.js',
},
};
4 changes: 2 additions & 2 deletions fronts-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"fetch-mock": "^6.4.2",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"jest": "^23.6.0",
"jest": "^24.9.0",
"jest-dom": "^2.1.0",
"markdown-toc": "^1.2.0",
"prettier": "^2.0.2",
Expand All @@ -65,7 +65,7 @@
"redux-mock-store": "^1.5.3",
"style-loader": "^0.23.1",
"testcafe": "^1.1.4",
"ts-jest": "^23.10.4",
"ts-jest": "^24.3.0",
"ts-loader": "^8.4.0",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"tslint": "^5.11.0",
Expand Down
Loading

0 comments on commit f522ef2

Please sign in to comment.