-
Notifications
You must be signed in to change notification settings - Fork 13
/
.vscode-test.mjs
38 lines (36 loc) · 1.07 KB
/
.vscode-test.mjs
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
import { defineConfig } from '@vscode/test-cli';
import * as semver from "semver";
import { readFileSync } from "fs";
const pkg = JSON.parse(readFileSync("./package.json"));
const vscodeVer = semver.minVersion(pkg.engines.vscode).version;
export default defineConfig({
tests: [{
label: 'unitTests',
files: 'out/test/unit/**/*.test.js',
workspaceFolder: 'out/test',
version: 'insiders',
mocha: {
timeout: 20000,
ui: 'bdd',
inlineDiffs: true,
color: true
},
launchArgs: [
"--disable-extension",
"vscode.git",
"--disable-extension",
"vscode.git-ui",
"--disable-extension",
"vscode.github",
"--disable-extension",
"vscode.github-authentication",
"--disable-workspace-trust",
]
}],
coverage: {
includeAll: true,
exclude: ['node_modules/**', 'src/test/**'],
reporter: ["text-summary", "html", "json-summary", "lcov"],
lines: 30
}
});