Skip to content

Commit 8b58298

Browse files
Setup Coverage Requirements
1 parent 0316ec4 commit 8b58298

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

jest.config.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
// FIXME: should not be necessary
2-
process.env.CDS_ENV = 'better-sqlite'
2+
process.env.CDS_ENV = "better-sqlite";
33

44
const config = {
55
testTimeout: 42222,
6-
testMatch: ['**/*.test.js']
7-
}
6+
testMatch: ["**/*.test.js"],
7+
verbose: true,
8+
coverageThreshold: {
9+
global: {
10+
branches: 80,
11+
functions: 80,
12+
lines: 80,
13+
statements: 80,
14+
},
15+
},
16+
};
817

9-
module.exports = config
18+
module.exports = config;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@
4848
}
4949
}
5050
}
51-
}
51+
}

0 commit comments

Comments
 (0)