-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.integration.config.js
More file actions
33 lines (25 loc) · 1.02 KB
/
jest.integration.config.js
File metadata and controls
33 lines (25 loc) · 1.02 KB
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
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// define globals that we will need defined
globals: {
'ts-jest': {
tsConfig: 'tsconfig.json',
},
},
// define module file extensions
moduleFileExtensions: ['ts', 'js'],
// describe transformation
transform: {
'^.+\\.(js|jsx)$': 'babel-jest',
'^.+\\.(ts|tsx)$': 'ts-jest',
},
// The test environment that will be used for testing
testEnvironment: 'node',
// The glob patterns Jest uses to detect test files
testMatch: ['**/src/**/?(*.)+(test.integration).(js|ts)', '**/schema/**/?(*.)+(test.integration).(js|ts)'],
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/acceptance-tests/'],
verbose: true, // Indicates whether each individual test should be reported during the run
setupFilesAfterEnv: ['./jest.timeout.setup.js'],
};