Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/chat-lib/vitest.config.ts
13383 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { loadEnv } from 'vite';
7
import { defineConfig } from 'vitest/config';
8
9
export default defineConfig(({ mode }) => ({
10
test: {
11
include: ['**/*.spec.ts', '**/*.spec.tsx'],
12
exclude: [
13
'**/node_modules/**',
14
'**/dist/**',
15
'**/.{idea,git,cache,output,temp}/**'
16
],
17
env: loadEnv(mode, process.cwd(), ''),
18
environment: 'node',
19
globals: true
20
}
21
}));
22