forked from stephan83/download-github-release
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathjest.config.js
34 lines (34 loc) · 943 Bytes
/
jest.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
export default {
verbose: true,
testEnvironment: 'node',
setupFilesAfterEnv: ['jest-extended/all'],
collectCoverage: true,
coverageReporters: ['json', 'lcov', 'text', 'html'],
coverageDirectory: 'coverage',
collectCoverageFrom: [
'<rootDir>/src/**/*.ts',
'!<rootDir>/**/coverage/**',
'!<rootDir>/**/*.d.ts',
'!<rootDir>/**/dist/**',
'!<rootDir>/**/coverage/**'
],
testMatch: [
'<rootDir>/test/**/*-spec.{ts,js}',
'<rootDir>/test/*-spec.{ts,js}',
],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
},
preset: 'ts-jest',
extensionsToTreatAsEsm: ['.ts'],
globals: {
'ts-jest': {
tsconfig: './tsconfig.json',
diagnostics: true,
useESM: true
},
ignoreDirectories: ['dist'],
availableExtensions: ['.js', '.ts', '.mjs']
},
testTimeout: 60 * 1000
};