forked from roseteromeo56/poap-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
32 lines (31 loc) · 984 Bytes
/
jest.config.ts
File metadata and controls
32 lines (31 loc) · 984 Bytes
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
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
export default {
// Indicates whether the coverage information should be collected while executing the test
collectCoverage: true,
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
// Indicates which provider should be used to instrument code for coverage
coverageProvider: 'v8',
preset: 'ts-jest/presets/default-esm',
extensionsToTreatAsEsm: ['.ts'],
roots: ['<rootDir>'],
transform: {
'^.+\.ts?$': ['ts-jest', {
useESM: true,
tsconfig: {
module: 'nodenext',
moduleResolution: 'nodenext'
}
}],
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.ts?$',
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
clearMocks: true,
moduleNameMapper: {
'^@poap-xyz/poap-sdk$': '<rootDir>/src',
'^(\\.{1,2}/.*)\\.js$': '$1',
},
};