Skip to content

Commit 481d54b

Browse files
committed
package.json update for integration test command in CI/CD
ellipsis change
1 parent a9c4306 commit 481d54b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,11 @@
278278
"dev": "cd webview-ui && npm run dev",
279279
"test": "jest && npm run test:webview",
280280
"test:webview": "cd webview-ui && npm run test",
281-
"test:integration": "npm run build && npm run compile:integration && npx dotenvx run -f .env.integration -- vscode-test",
281+
"test:integration": "npm run build && npm run compile:integration && npx dotenvx run -f .env.integration -- node ./out-integration/test/runTest.js",
282282
"prepare": "husky",
283283
"publish:marketplace": "vsce publish && ovsx publish",
284284
"publish": "npm run build && changeset publish && npm install --package-lock-only",
285285
"version-packages": "changeset version && npm install --package-lock-only",
286-
"e2e:test": "npm run build && tsc -p tsconfig.e2e.json && npx dotenvx run -f .env.e2e -- node ./out-e2e/test/runTest.js",
287286
"vscode:prepublish": "npm run package",
288287
"vsix": "rimraf bin && mkdirp bin && npx vsce package --out bin",
289288
"watch": "npm-run-all -p watch:*",

src/test/suite/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ export async function run(): Promise<void> {
3838
? globalThis.extension.exports
3939
: await globalThis.extension.activate()
4040
globalThis.provider = globalThis.api.sidebarProvider
41-
globalThis.provider.storeSecret("openRouterApiKey", process.env.OPENROUTER_API_KEY || "sk-or-v1-fake-api-key")
4241
await globalThis.provider.updateGlobalState("apiProvider", "openrouter")
4342
await globalThis.provider.updateGlobalState("openRouterModelId", "anthropic/claude-3.5-sonnet")
43+
await globalThis.provider.storeSecret(
44+
"openRouterApiKey",
45+
process.env.OPENROUTER_API_KEY || "sk-or-v1-fake-api-key",
46+
)
4447

4548
globalThis.panel = vscode.window.createWebviewPanel(
4649
"roo-cline.SidebarProvider",

0 commit comments

Comments
 (0)