From f023ee4a7655daa79c80911f1ed320ad2ca949bf Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Fri, 27 Jun 2025 19:28:33 -0700 Subject: [PATCH] add a util function to get the global context inside e2e --- extensions/vscode/e2e/TestUtils.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extensions/vscode/e2e/TestUtils.ts b/extensions/vscode/e2e/TestUtils.ts index 5b62edaa7..c6dd6676b 100644 --- a/extensions/vscode/e2e/TestUtils.ts +++ b/extensions/vscode/e2e/TestUtils.ts @@ -2,8 +2,15 @@ import { expect } from "chai"; import { Key } from "vscode-extension-tester"; import { DEFAULT_TIMEOUT } from "./constants"; +import path = require("path"); export class TestUtils { + public static CONTINUE_GLOBAL_DIR = process.env.CONTINUE_GLOBAL_DIR ?? ""; + + public static getGlobalContextFilePath(): string { + return path.join(TestUtils.CONTINUE_GLOBAL_DIR, "index", "globalContext.json"); + } + /** * In many cases it might be more useful to use existing Selenium * utilities. For example: