forked from SelfKeyFoundation/Identity-Wallet
-
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) · 928 Bytes
/
jest.config.js
File metadata and controls
27 lines (27 loc) · 928 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
module.exports = {
globalSetup: '<rootDir>/test/jest-setup.js',
globalTeardown: '<rootDir>/test/jest-teardown.js',
setupFilesAfterEnv: [
'<rootDir>/test/jest-setup-test-framework.js',
'<rootDir>/test/enzyme-setup.js'
],
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
modulePaths: ['<rootDir>/src'],
testMatch: ['**/src/**/*.spec.js', '**/src/**/*.steps.js'],
verbose: true,
testEnvironment: 'jsdom',
testURL: 'http://localhost/',
collectCoverageFrom: ['src/{main,common}/**/*.js'],
coverageReporters: ['json', 'lcov', 'text'],
coveragePathIgnorePatterns: ['src/main/(seed|assets|migrations)'],
coverageDirectory: 'dist/coverage',
coverageThreshold: {},
transform: {
'^.+\\.(js|jsx)$': 'babel-jest',
'.+\\.(css|styl|less|sass|scss)$': 'jest-transform-css'
},
moduleNameMapper: {
'\\.(css|less)$': '<rootDir>/test/styleMock.js',
'\\.(png|gif|ttf|eot|svg)$': '<rootDir>/test/fileMock.js'
}
};