From 481d54bf927800de981f74db73cba9416d11f1f6 Mon Sep 17 00:00:00 2001 From: ColemanRoo Date: Mon, 10 Feb 2025 13:19:35 -0600 Subject: [PATCH] package.json update for integration test command in CI/CD ellipsis change --- package.json | 3 +-- src/test/suite/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b6b90dc86a..8dce97faf6 100644 --- a/package.json +++ b/package.json @@ -278,12 +278,11 @@ "dev": "cd webview-ui && npm run dev", "test": "jest && npm run test:webview", "test:webview": "cd webview-ui && npm run test", - "test:integration": "npm run build && npm run compile:integration && npx dotenvx run -f .env.integration -- vscode-test", + "test:integration": "npm run build && npm run compile:integration && npx dotenvx run -f .env.integration -- node ./out-integration/test/runTest.js", "prepare": "husky", "publish:marketplace": "vsce publish && ovsx publish", "publish": "npm run build && changeset publish && npm install --package-lock-only", "version-packages": "changeset version && npm install --package-lock-only", - "e2e:test": "npm run build && tsc -p tsconfig.e2e.json && npx dotenvx run -f .env.e2e -- node ./out-e2e/test/runTest.js", "vscode:prepublish": "npm run package", "vsix": "rimraf bin && mkdirp bin && npx vsce package --out bin", "watch": "npm-run-all -p watch:*", diff --git a/src/test/suite/index.ts b/src/test/suite/index.ts index 2b83b6dccf..e05d0094d1 100644 --- a/src/test/suite/index.ts +++ b/src/test/suite/index.ts @@ -38,9 +38,12 @@ export async function run(): Promise { ? globalThis.extension.exports : await globalThis.extension.activate() globalThis.provider = globalThis.api.sidebarProvider - globalThis.provider.storeSecret("openRouterApiKey", process.env.OPENROUTER_API_KEY || "sk-or-v1-fake-api-key") await globalThis.provider.updateGlobalState("apiProvider", "openrouter") await globalThis.provider.updateGlobalState("openRouterModelId", "anthropic/claude-3.5-sonnet") + await globalThis.provider.storeSecret( + "openRouterApiKey", + process.env.OPENROUTER_API_KEY || "sk-or-v1-fake-api-key", + ) globalThis.panel = vscode.window.createWebviewPanel( "roo-cline.SidebarProvider",