diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..6f7f377 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v16 diff --git a/README.md b/README.md index 1a1c561..8a41414 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ This project is a sample project for creating a VS Code plugin with a hexagonal 1. Clone the repository ```shell - https://github.com/peterhnm/vscode-hexagonal-example.git + git clone https://github.com/peterhnm/vscode-hexagonal-example.git ``` 2. Install dependencies ```shell diff --git a/src/test/runTest.ts b/src/test/runTest.ts index 1fed15d..b79e696 100644 --- a/src/test/runTest.ts +++ b/src/test/runTest.ts @@ -12,8 +12,18 @@ async function main() { // Passed to --extensionTestsPath const extensionTestsPath = path.resolve(__dirname, "./suite/index"); + const testWorkspace = path.join(extensionDevelopmentPath, "example"); + // Download VS Code, unzip it and run the integration test - await runTests({ extensionDevelopmentPath, extensionTestsPath }); + await runTests({ + extensionDevelopmentPath, + extensionTestsPath, + launchArgs: [ + testWorkspace, + "--disable-extensions", + "--disable-workspace-trust", + ], + }); } catch (err) { console.error("Failed to run tests", err); process.exit(1);