forked from flybywiresim/aircraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (27 loc) · 810 Bytes
/
jest.config.js
File metadata and controls
27 lines (27 loc) · 810 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
/** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
setupFilesAfterEnv: ['./fbw-common/src/jest/setupJestMock.js'],
transform: {
'.spec.ts$': [
'ts-jest',
{
// Babel assumes isolated modules, therefore enable it here as well.
// This also speeds up the unit testing performance.
isolatedModules: true,
diagnostics: {
ignoreCodes: ['TS151001'],
},
},
],
},
// disable fmsv2 tests until they are fixed
modulePathIgnorePatterns: [
'fbw-a32nx/src/systems/fmgc/src/flightplanning',
'fbw-a380x/src/systems/fmgc/src/flightplanning',
],
moduleNameMapper: {
'@flybywiresim/fbw-sdk': '<rootDir>/fbw-common/src/systems/index.ts',
},
};