forked from warp-contracts/warp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
35 lines (28 loc) · 919 Bytes
/
jest.config.js
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
34
35
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
moduleFileExtensions: ['ts', 'js'],
// A map from regular expressions to module names that allow to stub out resources with a single module
moduleNameMapper: {
'@warp/cache': '<rootDir>/src/cache/index',
'@warp/contract': '<rootDir>/src/contract/index',
'@warp/core': '<rootDir>/src/core/index',
'@warp/legacy': '<rootDir>/src/legacy/index',
'@warp/plugins': '<rootDir>/src/plugins/index',
'@warp/logging': '<rootDir>/src/logging/index',
'@warp/utils': '<rootDir>/src/utils/index',
'@warp': '<rootDir>/src/index'
},
testPathIgnorePatterns: [
"/.yalc/",
"/data/",
"/_helpers",
],
testEnvironment: 'node',
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!@assemblyscript/.*)"
],
transform: {
'^.+\\.(ts|js)$': 'ts-jest'
}
};