This repository has been archived by the owner on May 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
/
jest.config.js
49 lines (49 loc) · 1.57 KB
/
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
45
46
47
48
49
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'babel-jest',
},
collectCoverage: true,
projects: [
{
displayName: 'automatic-releases',
testRegex: 'packages/automatic-releases/__tests__',
testPathIgnorePatterns: ['/__tests__/payloads', '/__tests__/utils/', '/__tests__/assets'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
},
// {
// name: 'keybase-notifications',
// displayName: 'keybase-notifications',
// testRegex: 'packages/keybase-notifications/__tests__',
// testPathIgnorePatterns: ['/__tests__/payloads', '/__tests__/utils'],
// setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
// },
// {
// name: 'aws-ssm-secrets',
// displayName: 'aws-ssm-secrets',
// testRegex: 'packages/aws-ssm-secrets/__tests__',
// setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
// },
],
coverageReporters: ['text'],
coverageThreshold: {
global: {
lines: 100,
},
},
collectCoverageFrom: [
'**/packages/automatic-releases/**/*.ts',
'!**/packages/automatic-releases/src/index.ts',
'!**/packages/automatic-releases/src/uploadReleaseArtifacts.ts',
'!**/__tests__/**',
'!**/dist/**',
'!**/packages/keybase-notifications/**/*.ts',
'!**/packages/keybase-notifications/src/index.ts',
'!**/packages/keybase-notifications/src/utils.ts',
'!**/packages/aws-ssm-secrets/**/*.ts',
'!**/packages/aws-ssm-secrets/src/index.ts',
],
};