-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
54 lines (54 loc) · 1.67 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
module.exports = {
name: 'b-ber',
verbose: false,
setupFilesAfterEnv: ['jest-extended'],
collectCoverage: false,
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/node_modules/**',
'!**/vendor/**',
'!**/dist/**',
'!**/demo/**',
'!**/demos/**',
'!**/*.config.js**',
'!**/*.loaders.js**',
'!**/b-ber-lib/*.js',
'!**/b-ber-reader/epub/**/*.js',
'!**/b-ber-resources/*.js',
'!**/b-ber-shapes-dublin-core/elements.js',
'!**/b-ber-shapes-dublin-core/terms.js',
'!**/b-ber-shapes-dublin-core/index.js',
'!**/b-ber-shapes-directives/index.js',
'!**/b-ber-shapes-sequences/index.js',
'!**/b-ber-shapes-sequences/create-build-sequence.js',
'!**/b-ber-shapes-sequences/sequences/index.js',
'!**/b-ber-templates/*.js',
'!**/b-ber-templates/Ncx/*.js',
'!**/b-ber-templates/Opf/*.js',
'!**/b-ber-templates/Ops/*.js',
'!**/b-ber-templates/Project/*.js',
'!**/b-ber-templates/Toc/*.js',
'!**/b-ber-templates/Xhtml/*.js',
'!**/b-ber-templates/Xml/*.js',
'!**/b-ber-templates/figures/*.js',
'!**/b-ber-markdown-renderer/src/highlightjs/**/*.js',
'!**/b-ber-lib/utils/*.js',
'!**/b-ber-reader/index.js',
'!**/jest-transform-upward.js',
'!**/webpack.config.*.js',
],
coveragePathIgnorePatterns: [
'<rootDir>/coverage/',
'<rootDir>/demos/',
'<rootDir>/scripts/',
],
coverageReporters: ['html', 'lcov', 'json'],
moduleFileExtensions: ['ts', 'js', 'jsx', 'json'],
testEnvironment: 'jest-environment-jsdom-global',
testPathIgnorePatterns: ['__mocks__'],
testURL: 'http://localhost/',
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.jsx?$': 'babel-jest',
},
}