From 3733516d6c17165e977be4b63773c3df1013fbf3 Mon Sep 17 00:00:00 2001 From: Pine Wu Date: Mon, 24 Jun 2019 20:21:14 -0700 Subject: [PATCH] Update test sample --- helloworld-test-sample/package-lock.json | 24 +++++++++++----------- helloworld-test-sample/package.json | 2 +- helloworld-test-sample/src/test/runTest.ts | 6 +++--- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/helloworld-test-sample/package-lock.json b/helloworld-test-sample/package-lock.json index 7a954906..72d34c00 100644 --- a/helloworld-test-sample/package-lock.json +++ b/helloworld-test-sample/package-lock.json @@ -66,9 +66,9 @@ "dev": true }, "agent-base": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.2.1.tgz", - "integrity": "sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", "dev": true, "requires": { "es6-promisify": "^5.0.0" @@ -294,9 +294,9 @@ } }, "es6-promise": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.6.tgz", - "integrity": "sha512-aRVgGdnmW2OiySVPUC9e6m+plolMAJKjZnQlCwNSuK5yQ0JN61DZSO1X1Ufd1foqWRAlig0rhduTCHe7sVtK5Q==", + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", "dev": true }, "es6-promisify": { @@ -1007,15 +1007,15 @@ } }, "typescript": { - "version": "3.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", - "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.2.tgz", + "integrity": "sha512-7KxJovlYhTX5RaRbUdkAXN1KUZ8PwWlTzQdHV6xNqvuFOs7+WBo10TQUqT19Q/Jz2hk5v9TQDIhyLhhJY4p5AA==", "dev": true }, "vscode-test": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-0.4.2.tgz", - "integrity": "sha512-ZqSh1WNQ1It3SVLnuDMS3HmadM86k2dXvv4ZtdT6+ezxZ1NIQRTbE5SZroV0EvIf5KGjhYNbj5HHqUjBsGjV6Q==", + "version": "1.0.0-next.0", + "resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-1.0.0-next.0.tgz", + "integrity": "sha512-YnAzFK/mTMQjxn6Ohc++2GUikYC3SbONAlghe7RgSsG1NpxK3GbwZldGxio9o0icSVo88DeUhPnFrm8DKm+NxA==", "dev": true, "requires": { "http-proxy-agent": "^2.1.0", diff --git a/helloworld-test-sample/package.json b/helloworld-test-sample/package.json index 824dfaf8..09788980 100644 --- a/helloworld-test-sample/package.json +++ b/helloworld-test-sample/package.json @@ -41,6 +41,6 @@ "source-map-support": "^0.5.12", "tslint": "^5.16.0", "typescript": "^3.5.1", - "vscode-test": "^0.4.2" + "vscode-test": "^1.0.0-next.0" } } diff --git a/helloworld-test-sample/src/test/runTest.ts b/helloworld-test-sample/src/test/runTest.ts index 475b0d36..9b2f0df1 100644 --- a/helloworld-test-sample/src/test/runTest.ts +++ b/helloworld-test-sample/src/test/runTest.ts @@ -6,14 +6,14 @@ async function main() { try { // The folder containing the Extension Manifest package.json // Passed to `--extensionDevelopmentPath` - const extensionPath = path.resolve(__dirname, '../../'); + const extensionDevelopmentPath = path.resolve(__dirname, '../../'); // The path to test runner // Passed to --extensionTestsPath - const testRunnerPath = path.resolve(__dirname, './suite'); + const extensionTestsPath = path.resolve(__dirname, './suite'); // Download VS Code, unzip it and run the integration test - await runTests({ extensionPath, testRunnerPath }); + await runTests({ extensionDevelopmentPath, extensionTestsPath }); } catch (err) { console.error('Failed to run tests'); process.exit(1);