forked from algolia/instantsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
44 lines (43 loc) · 1012 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
39
40
41
42
43
44
/* eslint-disable import/no-commonjs */
module.exports = {
rootDir: process.cwd(),
testEnvironment: 'jest-environment-jsdom-global',
setupFilesAfterEnv: ['./scripts/jest/setupTests.ts'],
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/dist*',
'<rootDir>/functional-tests',
],
watchPathIgnorePatterns: [
'<rootDir>/cjs',
'<rootDir>/dist',
'<rootDir>/es',
'<rootDir>/examples',
'<rootDir>/stories',
'<rootDir>/website',
],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
transformIgnorePatterns: ['node_modules/(?!(search-insights)/)'],
globals: {
__DEV__: true,
},
snapshotFormat: {
printBasicPrototype: false,
},
// reporter for circleci
reporters: [
'default',
[
'jest-junit',
{
outputDirectory: 'junit/jest',
suiteNameTemplate: '{filepath}',
ancestorSeparator: ' › ',
addFileAttribute: 'true',
},
],
],
};