-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathvitest.config.ts
52 lines (46 loc) · 1.87 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
43
44
45
46
47
48
49
50
51
/* --------------------------------------------------------------------------------------------
* 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';
/// <reference lib="vitest/config" />
export const vitestConfig = {
test: {
testTimeout: 25000,
browser: {
enabled: true,
headless: true,
provider: 'playwright',
api: {
port: 20101
},
instances: [
{
browser: 'chromium'
}
]
},
// keep an explicit list of tests to run, so they can be commented in case of problems
include: [
'**/client/test/fs/endpoints/emptyEndpoint.test.ts',
'**/client/test/tools/index.test.ts',
'**/client/test/tools/utils.test.ts',
'**/client/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/test/vscode/services.test.ts',
'**/wrapper/test/editorApp-classic.test.ts',
'**/wrapper/test/wrapper-classic.test.ts',
'**/wrapper/test/workers/workerLoaders.test.ts',
'**/wrapper-react/test/index.test.tsx'
// '**/*.test.ts',
// '**/*.test.tsx'
]
}
};
const definedVitestConfig = defineVitestConfig(vitestConfig);
export default mergeConfig(definedVitestConfig, definedViteConfig);