forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts.mjs
45 lines (43 loc) · 1.41 KB
/
jest.config.ts.mjs
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
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import baseConfig from './jest.config.mjs';
/** @type {import('jest').Config} */
export default {
projects: [
{
displayName: {
color: 'blue',
name: 'ts-integration',
},
modulePathIgnorePatterns: baseConfig.modulePathIgnorePatterns,
roots: ['<rootDir>/e2e/__tests__'],
testMatch: ['<rootDir>/e2e/__tests__/ts*'],
},
{
displayName: {
color: 'blue',
name: 'type-tests',
},
modulePathIgnorePatterns: baseConfig.modulePathIgnorePatterns,
roots: ['<rootDir>/packages'],
runner: 'jest-runner-tsd',
testMatch: [
'**/__typetests__/**/*.test.ts',
'!**/packages/expect/__typetests__/*.test.ts',
'!**/packages/expect-utils/__typetests__/*.test.ts',
'!**/packages/jest/__typetests__/*.test.ts',
'!**/packages/jest-cli/__typetests__/*.test.ts',
'!**/packages/jest-expect/__typetests__/*.test.ts',
'!**/packages/jest-mock/__typetests__/*.test.ts',
'!**/packages/jest-snapshot/__typetests__/*.test.ts',
'!**/packages/jest-types/__typetests__/config.test.ts',
'!**/packages/jest-worker/__typetests__/*.test.ts',
],
},
],
reporters: ['default', 'github-actions'],
};