forked from aws-samples/step-up-auth
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjest-e2e.config.js
59 lines (48 loc) · 1.7 KB
/
jest-e2e.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
50
51
52
53
54
55
56
57
58
59
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// https://jestjs.io/docs/en/configuration#globals-object
globals: {
"ts-jest": {
tsconfig: "tsconfig.json"
}
},
// https://jestjs.io/docs/en/configuration#testregex-string--arraystring
testRegex: '(/test/e2e/.*.(test|spec)).(js|ts)$',
// https://jestjs.io/docs/en/configuration#testenvironment-string
testEnvironment: 'node',
// https://jestjs.io/docs/en/configuration#testpathignorepatterns-arraystring
testPathIgnorePatterns: ["/node_modules/"],
// https://jestjs.io/docs/en/configuration#transform-objectstring-pathtotransformer--pathtotransformer-object
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
// https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring
moduleFileExtensions: [
"ts",
"js"
],
// https://jestjs.io/docs/en/configuration#coveragethreshold-object
// coverageThreshold: {
// global: {
// branches: 80,
// functions: 80,
// lines: 80,
// statements: 80
// }
// },
// https://jestjs.io/docs/en/configuration#collectcoveragefrom-array
collectCoverageFrom: [
'src/**/*.{js,ts}',
'!src/*.jsx',
'!src/config.js'
],
// https://jestjs.io/docs/en/configuration#clearmocks-boolean
// Automatically clear mock calls and instances between every test
// clearMocks: true,
// https://jestjs.io/docs/en/configuration#verbose-boolean
// Indicates whether each individual test should be reported during the run
verbose: false
};