-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
executable file
·33 lines (32 loc) · 1.02 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
const baseConfig = require("../../../jest.config");
const packageName = 'spectral-validation-extension';
module.exports = {
...baseConfig,
rootDir: '../..',
preset: 'ts-jest',
moduleNameMapper: {
"^nimma/legacy$": "<rootDir>/../node_modules/nimma/dist/legacy/cjs/index.js",
"^nimma/fallbacks$": "<rootDir>/../node_modules/nimma/dist/legacy/cjs/fallbacks/index.js"
},
roots: [
`<rootDir>/packages/${packageName}`,
],
collectCoverageFrom: [
`<rootDir>/packages/${packageName}/src/**/*`,
],
testRegex: '(/tests/.*)\\.(tsx?)$',
testURL: 'http://localhost/',
moduleDirectories: [
'node_modules',
],
modulePaths: [
`<rootDir>/packages/${packageName}/src/`,
],
projects: [`<rootDir>/packages/${packageName}/jest.config.js`],
name: packageName,
displayName: packageName,
rootDir: '../..',
testPathIgnorePatterns: [
`<rootDir>/packages/${packageName}/tests/__util__\\.ts`
]
}