|
1 | 1 | // import { execSync } from 'node:child_process'; |
2 | | -import { existsSync, rmSync } from 'node:fs'; |
3 | | -import { dirname, resolve } from 'node:path'; |
| 2 | +import { existsSync, rmSync } from "node:fs"; |
| 3 | +import { dirname, resolve } from "node:path"; |
4 | 4 | // import process from 'node:process'; |
5 | | -import { fileURLToPath } from 'node:url'; |
| 5 | +import { fileURLToPath } from "node:url"; |
6 | 6 |
|
7 | | -import { defineConfig } from '@vscode/test-cli'; |
| 7 | +import { defineConfig } from "@vscode/test-cli"; |
8 | 8 |
|
9 | 9 | const __filename = fileURLToPath(import.meta.url); |
10 | 10 | const __dirname = dirname(__filename); |
11 | 11 |
|
12 | 12 | // Clear user data directory before tests to prevent cached workspace state |
13 | | -const userDataDir = resolve(__dirname, '.vscode-test/user-data'); |
| 13 | +const userDataDir = resolve(__dirname, ".vscode-test/user-data"); |
14 | 14 | if (existsSync(userDataDir)) { |
15 | 15 | rmSync(userDataDir, { recursive: true, force: true }); |
16 | 16 | } |
17 | 17 |
|
18 | 18 | export default defineConfig({ |
19 | | - files: 'src/test/**/*.test.ts', |
20 | | - version: 'stable', // Match the parent VS Code version |
| 19 | + files: "src/test/**/*.test.ts", |
| 20 | + version: "stable", // Match the parent VS Code version |
21 | 21 | mocha: { |
22 | | - ui: 'bdd', |
| 22 | + ui: "bdd", |
23 | 23 | timeout: 30000, |
24 | 24 | parallel: false, |
25 | | - require: ['esbuild-register'], |
| 25 | + require: ["esbuild-register"], |
| 26 | + bail: true, |
26 | 27 | }, |
27 | 28 | // Allow extensions to load; we install required ones below via the 'extensions' field. |
28 | 29 | // Run with a temporary profile for isolation between test runs. |
29 | 30 | launchArgs: [ |
30 | | - resolve(__dirname, 'test-workspace', 'test-workspace.code-workspace'), |
| 31 | + resolve(__dirname, "test-workspace", "test-workspace.code-workspace"), |
31 | 32 | // '--profile-temp', |
32 | | - '--disable-extensions', |
| 33 | + "--disable-extensions", |
| 34 | + "--enable-proposed-api", |
| 35 | + "dkattan.copilot-breakpoint-debugger", |
33 | 36 | ], |
34 | 37 | // Request automatic installation of required marketplace extensions for tests. |
35 | 38 | // @vscode/test-cli will ensure these are present before running. |
36 | 39 | // extensions: ['ms-vscode.powershell'], |
37 | 40 | coverage: { |
38 | | - reporter: ['text', 'html', 'lcov'], |
39 | | - exclude: ['src/test/**', '**/node_modules/**'], |
| 41 | + reporter: ["text", "html", "lcov"], |
| 42 | + exclude: ["src/test/**", "**/node_modules/**"], |
40 | 43 | }, |
41 | 44 | timeout: 30000, |
42 | 45 | }); |
0 commit comments