-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathjest-e2e.config.ts
More file actions
32 lines (27 loc) · 963 Bytes
/
Copy pathjest-e2e.config.ts
File metadata and controls
32 lines (27 loc) · 963 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
29
30
31
32
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/en/configuration.html
*/
import type { Config } from '@jest/types'
import { Dates } from 'cafe-utility'
export default (): Config.InitialOptions => {
return {
collectCoverage: false,
forceExit: true,
// Run tests from one or more projects
projects: [
{
preset: 'ts-jest',
displayName: 'node',
testEnvironment: 'node',
testRegex: 'test/e2e/.*\\.spec\\.ts',
},
] as unknown[] as string[], // bad types
// The root directory that Jest should scan for tests and modules within
rootDir: 'test',
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: ['/node_modules/'],
// Increase timeout since we have long running cryptographic functions
testTimeout: Dates.minutes(6),
}
}