-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
33 lines (31 loc) · 941 Bytes
/
jest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type { JestConfigWithTsJest } from 'ts-jest';
const jestConfig: JestConfigWithTsJest = {
verbose: true,
//https://kulshekhar.github.io/ts-jest/docs/guides/esm-support/
preset: 'ts-jest/presets/js-with-ts-esm',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
//end of //https://kulshekhar.github.io/ts-jest/docs/guides/esm-support/
testEnvironment: 'node',
testPathIgnorePatterns: [
'/.git/',
'/.github/',
'/.husky/',
'/.vscode/',
'/docs/',
'/es/',
'/lib/',
'/node_modules/',
'/src/',
],
transformIgnorePatterns: [
// https://jestjs.io/docs/configuration#transformignorepatterns-arraystring
//'node_modules/(?!(lodash-es)/)', // for yarn
'<rootdir>/node_modules/.pnpm/(?!(lodash-es)@)', // for pnpm
],
coverageProvider: 'v8',
collectCoverageFrom: ['./src/**/*.{js,jsx,ts,tsx}'],
setupFilesAfterEnv: ['jest-extended'],
};
export default jestConfig;