Skip to content

Commit 6830f8f

Browse files
committed
test: Update test configuration
1 parent 07af15b commit 6830f8f

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

test/integration/Base.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('A server setup', (): void => {
6666
});
6767

6868
expect(noTokenResponse.status).toBe(401);
69-
wwwAuthenticateHeader = noTokenResponse.headers.get('WWW-Authenticate');
69+
wwwAuthenticateHeader = noTokenResponse.headers.get('WWW-Authenticate')!;
7070
expect(typeof wwwAuthenticateHeader).toBe('string');
7171
});
7272

test/tsconfig.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"compilerOptions": {
3+
// "@tsconfig/node16/tsconfig.json"
4+
"lib": ["es2021"],
5+
"module": "node16",
6+
"target": "es2021",
7+
"strict": true,
8+
"esModuleInterop": true,
9+
"skipLibCheck": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"moduleResolution": "node16",
12+
"types": [ "vitest/globals" ],
13+
"declaration": true,
14+
"isolatedModules": true,
15+
"inlineSourceMap": true,
16+
"preserveConstEnums": true,
17+
"outDir": "dist",
18+
"noImplicitAny": true,
19+
"experimentalDecorators": true,
20+
"downlevelIteration": true,
21+
},
22+
"include": [
23+
"."
24+
]
25+
}

vitest.config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
include: [ '**/test/(unit|integration)/**/*.test.ts' ],
99
coverage: {
1010
enabled: true,
11+
include: [ 'packages/**/src/**' ]
1112
},
1213
chaiConfig: {
1314
truncateThreshold: 0,

0 commit comments

Comments
 (0)