forked from MailOnline/mol-video-ad-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
25 lines (25 loc) · 797 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
/* eslint-disable import/unambiguous, import/no-commonjs */
module.exports = {
collectCoverage: true,
collectCoverageFrom: [
'**/src/**/*.js',
'**/src/**/*.jsx',
'**/src/**/*.tsx',
'**/src/**/*.ts',
'!**/src/**/*.d.ts',
'!**/src/**/__tests__/**/*',
'!**/src/**/__storybook__/**/*',
'!**/src/**/__karma__/**/*'
],
coverageDirectory: './coverage/',
coverageReporters: ['json', 'lcov', 'text', 'clover', 'html'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testEnvironment: './GlobalJsDomEnv.js',
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
testRegex: '__tests__/.*\\.spec\\.(jsx?|tsx?)$',
testURL: 'http://localhost',
transform: {
'.+\\.jsx?$': 'babel-jest'
},
transformIgnorePatterns: ['node_modules']
};