Files
vscode/extensions/copilot/chat-lib/vitest.config.ts
T
Jeff Hunter 4cbd1042c0 Inline completions in @vscode/chat-lib (#2131)
* Include inline completions in @vscode/chat-lib

* Follow type imports, * exports without "as", and jsxImportSource pragmas for dependency extraction

* update @vscode/chat-lib test configuration

* update chat lib extraction with new path and add context setup for lib

* initial stubs for inline completions test

* round trip test for getInlineCompletions

* remove unused path mappings

* fix type import

* send only original event names for chat-lib telemetry

* fix wasm loading in chat-lib

* have locateFile default to the current dir if the expected parent directory cannot be found

* update to use service injection with completions in chat-lib

* update citation and ExP handling for completions in chat-lib

* hook up enhanced telemetry for chat-lib

* add missing tsx package

* update post-install script to work with pre-built and unbuilt versions of chat-lib and add missing completions dependencies

* remove unneeded try/catch block

* correct typo

* generate package-lock from correct npm version

---------

Co-authored-by: Christof Marti <chrmarti@microsoft.com>
2025-11-21 15:47:14 +00:00

21 lines
720 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { loadEnv } from 'vite';
import { defineConfig } from 'vitest/config';
export default defineConfig(({ mode }) => ({
test: {
include: ['**/*.spec.ts', '**/*.spec.tsx'],
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/.{idea,git,cache,output,temp}/**'
],
env: loadEnv(mode, process.cwd(), ''),
environment: 'node',
globals: true
}
}));