forked from react-native-community/cli
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (27 loc) · 685 Bytes
/
Copy pathjest.config.js
File metadata and controls
28 lines (27 loc) · 685 Bytes
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
const common = {
testEnvironment: 'node',
snapshotSerializers: [require.resolve('jest-snapshot-serializer-raw')],
testRunner: 'jest-circus/runner',
};
module.exports = {
projects: [
{
...common,
displayName: 'e2e',
setupFilesAfterEnv: ['<rootDir>/jest/setupE2eTests.js'],
testMatch: ['<rootDir>/__e2e__/*{.,-}test.[jt]s'],
},
{
...common,
displayName: 'unit',
setupFilesAfterEnv: ['<rootDir>/jest/setupUnitTests.js'],
testMatch: ['<rootDir>/**/__tests__/*{.,-}test.[jt]s'],
},
],
collectCoverageFrom: [
'**/packages/*/**/*.ts',
'!**/__mocks__/**',
'!**/__tests__/**',
'!**/build/**',
],
};