forked from marp-team/marp-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
46 lines (45 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
const esModules = [
'bail',
'character-entities',
'comma-separated-tokens',
'decode-named-character-reference',
'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',
setupFiles: ['<rootDir>/jest.setup.js'],
testEnvironment: 'node',
transformIgnorePatterns: [`/node_modules/(?!${esModules.join('|')})`],
}