Skip to content

Commit

Permalink
chore: upgrade jest related packages and typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
awmleer committed Nov 13, 2023
1 parent df3a343 commit a7ed356
Show file tree
Hide file tree
Showing 4 changed files with 604 additions and 820 deletions.
12 changes: 4 additions & 8 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ module.exports = {
// globalTeardown: null,

// A set of global variables that need to be available in all test environments
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
globals: {},

// An array of directory names to be searched recursively up from the requiring module's location
// moduleDirectories: [
Expand Down Expand Up @@ -158,9 +154,9 @@ module.exports = {
// timers: "real",

// A map from regular expressions to paths to transformers
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
// transform: {
// '^.+\\.(ts|tsx)$': 'ts-jest',
// },

// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
// transformIgnorePatterns: [
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,34 @@
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^13.3.0",
"@testing-library/dom": "^8.20.1",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.1.0",
"@types/hoist-non-react-statics": "^3.3.5",
"@types/jest": "^27.5.2",
"@types/jest": "^29.5.8",
"@types/node": "^17.0.45",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@types/react-test-renderer": "^18.0.6",
"@types/use-sync-external-store": "^0.0.3",
"@types/use-sync-external-store": "^0.0.6",
"ahooks": "^3.7.8",
"del": "^6.1.1",
"dumi": "^1.1.54",
"gulp": "^4.0.2",
"gulp-typescript": "^5.0.1",
"husky": "^8.0.3",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"rollup": "^2.79.1",
"through2": "^4.0.2",
"ts-jest": "^28.0.8",
"ts-jest": "^29.1.1",
"tslint": "^6.1.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
},
"resolutions": {
"@types/react": "18",
Expand Down
Loading

0 comments on commit a7ed356

Please sign in to comment.