Explorar el Código

package.json update for integration test command in CI/CD
ellipsis change

ColemanRoo hace 10 meses
padre
commit
481d54bf92
Se han modificado 2 ficheros con 5 adiciones y 3 borrados
  1. 1 2
      package.json
  2. 4 1
      src/test/suite/index.ts

+ 1 - 2
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:*",

+ 4 - 1
src/test/suite/index.ts

@@ -38,9 +38,12 @@ export async function run(): Promise<void> {
 			? 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",