MCPcopy
hub / github.com/VSCodeVim/Vim / main

Function main

test/runTest.ts:5–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { runTests } from '@vscode/test-electron';
4
5async function main() {
6 try {
7 // The folder containing the Extension Manifest package.json
8 // Passed to `--extensionDevelopmentPath`
9 const extensionDevelopmentPath = path.resolve(__dirname, '../../');
10
11 // The path to the extension test runner script
12 // Passed to --extensionTestsPath
13 const extensionTestsPath = path.resolve(__dirname, './index');
14
15 // Download VS Code, unzip it and run the integration test
16 await runTests({
17 extensionDevelopmentPath,
18 extensionTestsPath,
19 // Disable other extensions while running tests for avoiding unexpected side-effect
20 launchArgs: ['--disable-extensions'],
21 });
22 } catch (err) {
23 console.error(err);
24 console.error('Failed to run tests');
25 process.exit(1);
26 }
27}
28
29void main();

Callers 1

runTest.tsFile · 0.85

Calls 2

errorMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected