forked from Ibrahim5aad/Share
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
62 lines (60 loc) · 1.28 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
/**
* TODO(pablo): this is a work-around for jest not understanding es6
* modules. I don't really understand the problem, just that this
* works.
*/
const esModules = [
'@bldrs-ai',
'bail',
'comma-separated-tokens',
'decode-named-character-reference',
'hast-util-whitespace',
'is-plain-obj',
'mdast-util-definitions',
'mdast-util-from-markdown',
'mdast-util-to-hast',
'mdast-util-to-string',
'micromark',
'property-information',
'space-separated-tokens',
'remark-rehype',
'react-markdown',
'remark-parse',
'three',
'trim-lines',
'trough',
'unified',
'unist-builder',
'unist-util-generated',
'unist-util-is',
'unist-util-position',
'unist-util-stringify-position',
'unist-util-visit',
'uuid',
'vfile',
'vfile-message',
'web-ifc',
'web-ifc-three',
'web-ifc-viewer',
].join('|')
module.exports = {
verbose: false,
testEnvironment: 'jsdom',
testPathIgnorePatterns: [
'src/Share.test.js',
],
transform: {
'\\.[jt]sx?$': 'babel-jest',
'^.+\\.svg$': '<rootDir>/svgTransform.js',
},
transformIgnorePatterns: [
`/node_modules/(?!${esModules}/)`,
],
moduleNameMapper: {
'^.+\\.css$': 'identity-obj-proxy',
},
setupFilesAfterEnv: [
'<rootDir>/src/setupTests.js',
'@alex_neo/jest-expect-message',
],
}