forked from trezor/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.integration.js
34 lines (33 loc) · 1019 Bytes
/
jest.config.integration.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
/*
* Integration tests
*/
module.exports = {
rootDir: './',
moduleFileExtensions: ['js'],
testMatch: ['**/tests/**/*.test.js'],
modulePathIgnorePatterns: ['node_modules', '_old', 'src/types', 'src/ui', 'src/utils/ws.ts'],
setupFilesAfterEnv: ['<rootDir>/tests/jest.setup.js', '<rootDir>/tests/common.setup.js'],
globalSetup: '<rootDir>/tests/jest.globalSetup.js',
globalTeardown: '<rootDir>/tests/jest.globalTeardown.js',
transform: {
'^.+\\.js$': 'babel-jest',
},
collectCoverage: false,
coverageDirectory: './coverage/',
coveragePathIgnorePatterns: [
'/node_modules/',
'/__tests__/',
'/__fixtures__/',
'/src/js/env/',
'/src/js/iframe/',
'/src/js/popup/',
'/src/js/storage/',
'/src/js/types/',
'/src/js/webusb/',
'/src/js/plugins/',
],
collectCoverageFrom: ['./src/js/**/*.{js}', '!**/node_modules/**'],
verbose: true,
bail: true,
testEnvironment: 'node',
};