Skip to content

Commit

Permalink
chore: fix jest and test package
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadphol committed Jan 2, 2025
1 parent 6a373ca commit 24f146e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
2 changes: 2 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ const config: Config = {
collectCoverageFrom: ['<rootDir>/src/**/*.(ts|tsx)'],
coverageProvider: 'v8',
coveragePathIgnorePatterns: ['/node_modules/'],
testMatch: ['<rootDir>/__tests__/**/*.(spec|test).(ts|tsx)'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'@mock/(.*)$': '<rootDir>/__mock__/$1',
'@tests/(.*)$': '<rootDir>/__tests__/$1',
'@test/utils': '<rootDir>/__tests__/test-utils.tsx',
},
moduleDirectories: ['node_modules', '<rootDir>/'],
testEnvironment: 'jsdom',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.10",
"msw": "^2.4.9",
"msw": "2.4.3",
"postcss": "^8",
"prettier": "^3.4.2",
"prettier-plugin-organize-imports": "^4.1.0",
Expand All @@ -64,7 +64,7 @@
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5",
"undici": "^7"
"undici": "^6"
},
"packageManager": "pnpm@9.15.0"
}
54 changes: 27 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 24f146e

Please sign in to comment.