-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.vscode-test.mjs
More file actions
25 lines (23 loc) · 780 Bytes
/
Copy path.vscode-test.mjs
File metadata and controls
25 lines (23 loc) · 780 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
import { defineConfig } from '@vscode/test-cli';
import os from 'node:os';
import path from 'node:path';
// VS Code's default user-data-dir lives inside the project (.vscode-test/user-data). On deep project
// paths that pushes the Extension Host IPC socket past macOS's ~103-char unix-socket limit
// (listen EINVAL: ...-main.sock). Relocate it to a short temp path so `npm test` runs anywhere.
const userDataDir = path.join(os.tmpdir(), 'irt-vscode-test');
export default defineConfig({
tests: [
{
files: 'out/test/**/*.test.js',
mocha: {
ui: 'bdd',
},
launchArgs: [ '--user-data-dir', userDataDir ],
},
],
coverage: {
includeAll: true,
exclude: [ '**/test/**', '**/*.test.*' ],
reporter: [ 'text', 'html' ],
},
});