Skip to content

Commit 4f0ac2b

Browse files
Merge pull request #62 from JojoFlex1/test/integration-auth
Test/integration auth
2 parents 9eef44f + 1480af6 commit 4f0ac2b

10 files changed

Lines changed: 1727 additions & 996 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist
55
.env
66
.env.*
77
*.log
8+
coverage/

jest.config.js

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
1-
/** @type {import('ts-jest').JestConfigWithTsJest} */
2-
module.exports = {
3-
preset: 'ts-jest',
1+
export default {
2+
preset: 'ts-jest/presets/default-esm',
43
testEnvironment: 'node',
5-
testMatch: ['**/?(*.)+(spec|test).ts']
6-
};
4+
extensionsToTreatAsEsm: ['.ts'],
5+
moduleNameMapper: {
6+
'^(\\.{1,2}/.*)\\.js$': '$1',
7+
},
8+
transform: {
9+
'^.+\\.tsx?$': ['ts-jest', {
10+
useESM: true,
11+
tsconfig: {
12+
module: 'ESNext',
13+
moduleResolution: 'Bundler',
14+
},
15+
}],
16+
},
17+
collectCoverageFrom: [
18+
'src/**/*.ts',
19+
'!src/index.ts',
20+
],
21+
coverageThreshold: {
22+
global: {
23+
lines: 95,
24+
functions: 95,
25+
branches: 95,
26+
statements: 95,
27+
},
28+
},
29+
testMatch: ['**/tests/integration/**/*.test.ts'],
30+
};

0 commit comments

Comments
 (0)