-
Notifications
You must be signed in to change notification settings - Fork 3
/
jest.config.js
54 lines (52 loc) · 1.13 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/en/configuration.html
*/
module.exports = {
name: 'fjplayer',
verbose: true,
rootDir: '.',
clearMocks: true,
cacheDirectory: 'cache',
coverageDirectory: 'coverage',
coverageReporters: ['text', 'json'],
reporters: [
'default',
['./node_modules/jest-html-reporter', {
pageTitle: 'Test Report',
}],
],
preset: 'jest-puppeteer',
setupFilesAfterEnv: ['./jest.setup.js'],
collectCoverageFrom: [
'**/*.{js,jsx}',
'!**/node_modules/**',
'!**/coverage/**',
'!**/cache/**',
'!**/demo/**',
'!**/dist/**',
'!**/docs/**',
'!**/test/**',
'!**/videoscripts-master/**',
'!**/vendor/**',
'!jest.config.js',
'!webpack-prod.config.js',
'!webpack.config.js',
],
coveragePathIgnorePatterns: [
'/node_modules/',
],
modulePaths: [
'<rootDir>',
],
transform: {
'.+\\.(css|styl|less|sass|scss)$': '<rootDir>/node_modules/jest-css-modules-transform',
},
globals: {
window: {},
},
moduleDirectories: [
'node_modules',
'src',
],
};