-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.vscode-test.mjs
More file actions
36 lines (35 loc) · 995 Bytes
/
.vscode-test.mjs
File metadata and controls
36 lines (35 loc) · 995 Bytes
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
import * as path from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "@vscode/test-cli";
/**
* Integration test configs.
*
* VS Code version defaults to stable.
*/
export default defineConfig([
{
labels: "unit",
files: "out/test/unit/**.test.js",
workspaceFolder: "test/workspaces/unit",
launchArgs: ["--disable-extensions"],
env: {
TEST_ENV: "env_replacement",
},
extensionDevelopmentPath: path.resolve(
path.dirname(fileURLToPath(import.meta.url)),
"./test/workspaces/unit"
),
},
{
labels: "integrationEmptySingleRootWorkspace",
files: "out/test/integration/*.test.js",
workspaceFolder: "test/workspaces/empty-single",
launchArgs: ["--disable-extensions"],
},
{
labels: "integrationMixedMultiRootWorkspace",
files: "out/test/integration/*.test.js",
workspaceFolder: "test/workspaces/multi/multi.code-workspace",
launchArgs: ["--disable-extensions"],
},
]);