forked from algolia/react-instantsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
38 lines (38 loc) · 932 Bytes
/
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
module.exports = {
setupFilesAfterEnv: [
'@testing-library/jest-dom/extend-expect',
'./scripts/jest/setupTests.ts',
],
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/examples/',
'/__utils__/',
],
snapshotSerializers: ['enzyme-to-json/serializer', 'jest-serializer-html'],
testEnvironment: 'jsdom',
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
moduleNameMapper: {
'^react-instantsearch-(.*)$':
'<rootDir>/packages/react-instantsearch-$1/src/',
},
transformIgnorePatterns: ['node_modules/(?!(instantsearch.js)/)'],
globals: {
__DEV__: true,
},
// reporter for circleci
reporters: [
'default',
[
'jest-junit',
{
outputDirectory: 'junit/jest',
suiteNameTemplate: '{filepath}',
ancestorSeparator: ' › ',
addFileAttribute: 'true',
},
],
],
};