-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjest.config.cjs
More file actions
16 lines (15 loc) · 702 Bytes
/
jest.config.cjs
File metadata and controls
16 lines (15 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const transformIgnorePackages = ['p-pipe', 'p-limit']
/** @type {import('jest').Config} */
module.exports = {
testEnvironment: 'node',
testMatch: ['**/*.test.ts', '**/*.test.tsx', '**/*.test.js', '**/*.test.jsx'],
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest'],
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
collectCoverageFrom: ['bin/*.{js,ts}', 'lib/**/*.{js,ts,jsx,tsx}', 'features/**/*.{js,ts,jsx,tsx}'],
coveragePathIgnorePatterns: ['/node_modules/'],
modulePathIgnorePatterns: ['<rootDir>/blogs', 'vercel/output', '/database/.cache'],
transformIgnorePatterns: [`/node_modules/(?!${transformIgnorePackages.join('|')})`],
moduleDirectories: ['node_modules', 'src'],
}