/
jest.config.js
36 lines (35 loc) · 1.07 KB
/
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
36
// const esModules = ['chalk', 'to-vfile'].join('|');
module.exports = {
// verbose: true,
extensionsToTreatAsEsm: ['.ts'],
// transformIgnorePatterns: [`/node_modules/(?!${esModules})`],
testTimeout: 30000,
// roots: [
// '<rootDir>/compiler/src',
// '<rootDir>/template/src',
// '<rootDir>/fixtures',
// ],
// watchPathIgnorePatterns: [
// '<rootDir>/node_modules/',
// '<rootDir>/compiler/build/',
// '<rootDir>/template/build/',
// '<rootDir>/fixtures/**/build/',
// ],
// moduleFileExtensions: ['ts', 'js'],
// projects: [
// {
// displayName: { name: 'compiler', color: 'cyan' },
// testMatch: ['<rootDir>/compiler/**/*(*.)test.ts?(x)'],
// testEnvironment: "node",
// },
// {
// displayName: { name: 'template', color: 'magenta' },
// testMatch: ['<rootDir>/template/**/*(*.)test.ts?(x)']
// }
// ],
moduleNameMapper: {
"\\assets/(.*)": "<rootDir>/test-utils/file-mock.js",
"\\template/build/(.*)": "<rootDir>/test-utils/file-mock.js",
"#(.*)": "<rootDir>/node_modules/$1"
},
};