forked from remirror/remirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
78 lines (63 loc) · 2.3 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
const reporters = ['default'];
if (process.env.CI === 'true') {
reporters.push('jest-github-reporter');
}
module.exports = {
...require('./support/jest/jest.config'),
coverageThreshold: {
global: {
statements: 50,
functions: 50,
lines: 50,
},
},
collectCoverageFrom: [
'**/*.{ts,tsx}',
'!**/*.d.ts',
'!**/*.dts.ts',
'!**/theme-styles.ts',
'!**/styles.ts',
'!**/__mocks__/**',
'!**/__tests__/**',
'!**/__dts__/**',
'!**/__fixtures__/**',
'!support/**',
'!examples/**',
'!website/**',
// Currently can't be tested with JSDOM
'!packages/remirror__extension-epic-mode/**',
// Refactor upcoming for emoji which will change the structure.
'!packages/remirror__extension-emoji/src/data/**',
// Positions can't be tested properly in JSDOM. This will be addressed again
// once the project moves to a new unit test runner.
'!packages/remirror__extension-positioner/**',
// Themes may be removed at some point, or heavily refactored.
'!packages/remirror__theme/**',
// Tables are still in a very early stage
'!packages/remirror__preset-table/**',
// There is still al ot of work needed in order to make renderers useful.
'!packages/remirror__react/src/renderers/**',
// SSR is currently being looked at, starting from e2e tests.
'!packages/remirror__react/src/ssr/**',
// Still deciding whether to deprecate and replace with `yjs`.
'!packages/remirror__extension-collaboration/**',
// Still a wip
'!packages/remirror__extension-image/**',
// Still a wip
'!packages/remirror__react-components/**',
// Still deciding how best to use this project. It should be moved outside
// of remirror for simplification.
'!packages/multishift/**',
// No need to test these static icon files.
'!packages/remirror__icons/src/all-icons.ts',
'!packages/remirror__react-components/src/icons/all.ts',
// Still a wip. No tests at the moment due to lack of usage.
'!packages/remirror__cli/**',
],
coverageReporters: ['json', 'lcov', 'text-summary', 'clover'],
collectCoverage: false,
reporters,
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
testRunner: 'jest-circus/runner',
testPathIgnorePatterns: ['/node_modules/'],
};