-
-
Notifications
You must be signed in to change notification settings - Fork 182
/
vitest.config.ts
43 lines (38 loc) · 1.4 KB
/
vitest.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
35
36
37
38
39
40
41
42
/* --------------------------------------------------------------------------------------------
* Copyright (c) 2024 TypeFox and others.
* Licensed under the MIT License. See LICENSE in the package root for license information.
* ------------------------------------------------------------------------------------------ */
import { mergeConfig } from 'vite';
import { defineConfig as defineVitestConfig } from 'vitest/config';
import definedViteConfig from './vite.config.js';
export const vitestBaseConfig = {
test: {
testTimeout: 10000,
pool: 'threads',
poolOptions: {
threads: {
isolate: true
}
},
browser: {
enabled: true,
headless: true,
name: 'chromium',
provider: 'playwright',
api: {
port: 20101,
}
},
include: [
'**/client/test/tools/index.test.ts',
'**/wrapper/test/vscode/services.test.ts',
'**/wrapper/test/editorApp.test.ts',
'**/wrapper/test/languageClientWrapper.test.ts',
'**/wrapper/test/utils.test.ts',
'**/wrapper/test/wrapper.test.ts',
'**/wrapper-react/test/index.test.tsx'
]
}
};
const definedVitestConfig = defineVitestConfig(vitestBaseConfig);
export default mergeConfig(definedVitestConfig, definedViteConfig);