mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Update to latest vscode-test API
This commit is contained in:
6
helloworld-test-sample/package-lock.json
generated
6
helloworld-test-sample/package-lock.json
generated
@ -1013,9 +1013,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"vscode-test": {
|
||||
"version": "0.4.1",
|
||||
"resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-0.4.1.tgz",
|
||||
"integrity": "sha512-uIi/07uG/gmCbD9Y9bFpNzmk4el82xiclijEdL426A3jOFfvwdqgfmtuWYfxEGo0w6JY9EqVDTGQCXwuInXVTQ==",
|
||||
"version": "0.4.2",
|
||||
"resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-0.4.2.tgz",
|
||||
"integrity": "sha512-ZqSh1WNQ1It3SVLnuDMS3HmadM86k2dXvv4ZtdT6+ezxZ1NIQRTbE5SZroV0EvIf5KGjhYNbj5HHqUjBsGjV6Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"http-proxy-agent": "^2.1.0",
|
||||
|
||||
@ -40,6 +40,6 @@
|
||||
"source-map-support": "^0.5.12",
|
||||
"tslint": "^5.16.0",
|
||||
"typescript": "^3.4.5",
|
||||
"vscode-test": "^0.4.1"
|
||||
"vscode-test": "^0.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,15 +6,12 @@ async function go() {
|
||||
try {
|
||||
const extensionPath = path.resolve(__dirname, '../../');
|
||||
const testRunnerPath = path.resolve(__dirname, './suite');
|
||||
const testWorkspace = path.resolve(__dirname, '../../test/suite/fixture');
|
||||
|
||||
await runTests({
|
||||
// The folder containing the Extension Manifest package.json
|
||||
extensionPath,
|
||||
// The path to test runner
|
||||
testRunnerPath,
|
||||
// The workspace to open on starting up VS Code
|
||||
testWorkspace
|
||||
testRunnerPath
|
||||
});
|
||||
} catch (err) {
|
||||
console.error('Failed to run tests');
|
||||
|
||||
Reference in New Issue
Block a user