forked from auth0/node-oauth2-jwt-bearer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
39 lines (39 loc) · 885 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
35
36
37
38
39
module.exports = {
preset: 'ts-jest/presets/js-with-ts',
testEnvironment: 'node',
collectCoverageFrom: ['src/*'],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
reporters: [
'default',
[
'jest-junit',
{
suiteName: 'express-oauth2-jwt-bearer',
outputDirectory: '../../test-results/express-oauth2-jwt-bearer',
},
],
],
moduleNameMapper: {
'^oauth2-bearer$': '<rootDir>/../oauth2-bearer/src/',
'^access-token-jwt$': '<rootDir>/../access-token-jwt/src/',
},
globals: {
'ts-jest': {
tsconfig: {
baseUrl: '.',
paths: {
'oauth2-bearer': ['../oauth2-bearer/src'],
'access-token-jwt': ['../access-token-jwt/src'],
},
useUnknownInCatchVariables: false,
},
},
},
};