forked from amplication/amplication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.preset.js
38 lines (37 loc) · 960 Bytes
/
jest.preset.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
const nxPreset = require("@nrwl/jest/preset").default;
module.exports = {
...nxPreset,
reporters: ["default", "github-actions"],
coverageProvider: "v8",
collectCoverage: true,
collectCoverageFrom: [
"**/*.{ts,tsx}",
"!**/*.types.{ts,tsx}",
"!**/*.template.{ts,tsx}",
"!**/*.spec.{ts,tsx}",
"!**/*.e2e-spec.{ts,tsx}",
"!**/tests/e2e/**",
"!**/node_modules/**",
"!**/amplication_modules/**",
"!**/prisma/generated-prisma-client/**",
"!**/migration-scripts/**",
"!**/scripts/**",
"!**/jest.config.ts",
"!**/jest.**.config.ts",
"!**/index.ts",
"!**/*.mock.ts",
"!**/*.module.ts",
"!**/*.interface.ts",
"!**/((*.)?)enum.ts",
"!**/((*.)?)constants.ts",
"!**/((*.)?)types.ts",
"!**/dto/**",
"!**/models.ts", // autogenerated by nx graphql:models:generate amplication-server
],
coverageThreshold: {
global: {
branches: 90,
lines: 90,
},
},
};