-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
jest.config.js
49 lines (48 loc) · 1.19 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
const esModules = [
'bail',
'character-entities',
'comma-separated-tokens',
'decode-named-character-reference',
'devlop',
'hast-util-from-html',
'hast-util-from-parse5',
'hast-util-parse-selector',
'hastscript',
'is-plain-obj',
'longest-streak',
'mdast-util-from-markdown',
'mdast-util-math',
'mdast-util-to-markdown',
'mdast-util-to-string',
'micromark-extension-math',
'micromark-factory-space',
'micromark-util-character',
'micromark-util-combine-extensions',
'micromark',
'nanoid',
'parse-entities',
'property-information',
'rehype-parse',
'remark-math',
'remark-parse',
'space-separated-tokens',
'trough',
'unified',
'unist-util-is',
'unist-util-stringify-position',
'unist-util-visit',
'vfile',
'web-namespaces',
'yaml',
]
module.exports = {
clearMocks: true,
collectCoverageFrom: ['src/**/*.ts', 'src/**/*.js'],
coveragePathIgnorePatterns: ['/node_modules/', '.*\\.d\\.ts'],
coverageThreshold: { global: { lines: 95 } },
preset: 'ts-jest/presets/js-with-babel',
prettierPath: null,
setupFiles: ['<rootDir>/jest.setup.js'],
testEnvironment: 'node',
transformIgnorePatterns: [`/node_modules/(?!${esModules.join('|')})`],
}