forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.test.ts
41 lines (39 loc) · 898 Bytes
/
config.test.ts
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
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {expectAssignable} from 'tsd-lite';
import type {Config} from '@jest/types';
expectAssignable<Config.InitialOptions>({
coverageThreshold: {
'./src/api/very-important-module.js': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
'./src/components/': {
branches: 40,
statements: 40,
},
'./src/reducers/**/*.js': {
statements: 90,
},
global: {
branches: 50,
functions: 50,
lines: 50,
statements: 50,
},
},
projects: [
// projects can be globs or objects
'./src/**',
{
displayName: 'A Project',
rootDir: './src/components',
},
],
});