Skip to content

Commit cc3c73f

Browse files
Use GITHUB_ACTIONS
1 parent ffb9f5b commit cc3c73f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

nodejs/test/e2e/harness/sdkTestContext.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import { CopilotClient } from "../../../src";
1313
import { CapiProxy } from "./CapiProxy";
1414
import { retry } from "./sdkTestHelper";
1515

16-
// Unfortunately the VS Code Vitest extension sets CI=true in all non-debug runs, so we have to exclude that
17-
export const isCI = process.env.CI === "true" && !process.env.VITEST_VSCODE;
16+
export const isCI = process.env.GITHUB_ACTIONS === "true";
1817

1918
const __filename = fileURLToPath(import.meta.url);
2019
const __dirname = dirname(__filename);

test/harness/replayingCapiProxy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ export class ReplayingCapiProxy extends CapturingHttpProxy {
311311

312312
// Fallback to normal proxying if no cached response found
313313
// This implicitly captures the new exchange too
314-
// The VS Code Vitest extension always sets CI=true in non-debug mode, so we have to exclude that case
315-
const isCI = process.env.CI === "true" && !process.env.VITEST_VSCODE;
314+
const isCI = process.env.GITHUB_ACTIONS === "true";
316315
if (isCI) {
317316
await exitWithNoMatchingRequestError(
318317
options,

0 commit comments

Comments
 (0)