-
Notifications
You must be signed in to change notification settings - Fork 75
/
jest.config.js
35 lines (32 loc) · 943 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
const TEST_STANDALONE = Boolean(process.env.TEST_STANDALONE);
const testMatch = [
'<rootDir>/tests/format/**/jsfmt.spec.js',
'<rootDir>/tests/unit/**/*.test.js'
];
if (TEST_STANDALONE) {
testMatch.push('<rootDir>/tests/integration/**/*.test.js');
}
export default {
runner: 'jest-light-runner',
setupFiles: ['<rootDir>/tests/config/setup.js'],
snapshotSerializers: [
'jest-snapshot-serializer-raw',
'jest-snapshot-serializer-ansi'
],
testEnvironment: 'node',
// ignore console warnings in TEST_STANDALONE
silent: TEST_STANDALONE,
testPathIgnorePatterns: TEST_STANDALONE
? [
// Standalone mode doesn't have default options.
// This has been reported https://github.com/prettier/prettier/issues/11107
'tests/format/RespectDefaultOptions'
]
: [],
testMatch,
transform: {},
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
]
};