-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.config.ts
34 lines (32 loc) · 878 Bytes
/
jest.config.ts
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
import type { Config } from 'jest';
const config: Config = {
testEnvironment: 'node',
roots: ['<rootDir>/test'],
setupFilesAfterEnv: [
'<rootDir>/test/index.ts',
],
testMatch: ['**/*.test.ts'],
testPathIgnorePatterns: [
].filter((file) => !process.argv.includes(file)),
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest', {
isolatedModules: process.env.FAST_JEST==='1',
}],
},
resetMocks: true,
reporters: [
['default', {summaryThreshold: 0}],
'github-actions',
],
coverageReporters: [['text', { skipFull: true }]],
coverageDirectory: '.',
collectCoverageFrom: [
'**/*.ts',
'!test/**',
// TODO
'!src/bin/**',
'!src/protobufs/**',
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node']
};
export default config;