forked from Anchor-Protocol/anchorcli
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (26 loc) · 725 Bytes
/
Copy pathjest.config.js
File metadata and controls
26 lines (26 loc) · 725 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
module.exports = {
roots: ['<rootDir>/src/'],
transform: {
'.(ts|tsx)': 'ts-jest',
},
testTimeout: 50000,
testMatch: ['**/__test?(s)__/**/*.ts?(x)', '**/?(*.)(spec|test).ts?(x)'],
moduleNameMapper: {
'@anchor-protocol/anchor.js/(.*)$': '<rootDir>/anchor.js/src/$1',
'@anchor-protocol/cli/(.*)$': '<rootDir>/cli/src/$1'
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
collectCoverageFrom: [
'src/**/*.ts?(x)',
'!**/*.d.ts?(x)',
'!**/__*__/**',
'!**/bin/**'
],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
//moduleDirectories: ['<rootDir>/src', '<rootDir>/node_modules', '<rootDir>/../node_modules'],
//modulePaths: ['<rootDir>/src/'],
};