-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
25 lines (22 loc) · 990 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
// const path = require('path');
// const dotenv = require('dotenv');
// dotenv.config({ path: path.resolve(process.cwd(), `config/${process.env.NODE_ENV}.env`) });
// const { pathsToModuleNameMapper } = require('ts-jest/utils');
// // In the following statement, replace `./tsconfig` with the path to your `tsconfig` file
// // which contains the path mapping (ie the `compilerOptions.paths` option):
// const { compilerOptions } = require('./tsconfig');
module.exports = {
preset: 'ts-jest',
globalSetup: './tests/jest/globalSetup.ts',
globalTeardown: './tests/jest/globalTeardown.ts',
globals: {
'ts-jest': {
diagnostics: {
ignoreCodes: 'TS7016',
},
},
},
// testEnvironment: './test/config/environment/single-context-environment',
// setupFilesAfterEnv: ['./jest.setup.js', 'jest-expect-message'],
// moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/' })
};