From e9611e74a14fb5139758322f0793d17465685eca Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 28 Apr 2026 03:43:40 +0100 Subject: [PATCH] test: fix core support boundary helpers --- test/helpers/bundled-plugin-paths.ts | 12 ++++++++++++ test/helpers/import-fresh.ts | 1 + test/helpers/stt-live-audio.ts | 1 + test/test-env.test.ts | 2 +- test/vitest-unit-fast-config.test.ts | 2 +- 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 test/helpers/bundled-plugin-paths.ts create mode 100644 test/helpers/import-fresh.ts create mode 100644 test/helpers/stt-live-audio.ts diff --git a/test/helpers/bundled-plugin-paths.ts b/test/helpers/bundled-plugin-paths.ts new file mode 100644 index 00000000000..a9918cd4db1 --- /dev/null +++ b/test/helpers/bundled-plugin-paths.ts @@ -0,0 +1,12 @@ +export { + BUNDLED_PLUGIN_E2E_TEST_GLOB, + BUNDLED_PLUGIN_LIVE_TEST_GLOB, + BUNDLED_PLUGIN_PATH_PREFIX, + BUNDLED_PLUGIN_ROOT_DIR, + BUNDLED_PLUGIN_TEST_GLOB, + bundledDistPluginFile, + bundledDistPluginRoot, + bundledPluginCallsite, + bundledPluginFile, + bundledPluginRoot, +} from "../../scripts/lib/bundled-plugin-paths.mjs"; diff --git a/test/helpers/import-fresh.ts b/test/helpers/import-fresh.ts new file mode 100644 index 00000000000..c8d7f8164c1 --- /dev/null +++ b/test/helpers/import-fresh.ts @@ -0,0 +1 @@ +export { importFreshModule } from "../../src/plugin-sdk/test-helpers/import-fresh.js"; diff --git a/test/helpers/stt-live-audio.ts b/test/helpers/stt-live-audio.ts new file mode 100644 index 00000000000..51c6913e84b --- /dev/null +++ b/test/helpers/stt-live-audio.ts @@ -0,0 +1 @@ +export { normalizeTranscriptForMatch } from "../../src/plugin-sdk/test-helpers/stt-live-audio.js"; diff --git a/test/test-env.test.ts b/test/test-env.test.ts index 8595659c766..62c7896ac64 100644 --- a/test/test-env.test.ts +++ b/test/test-env.test.ts @@ -1,7 +1,7 @@ import fs from "node:fs"; import path from "node:path"; import { afterEach, describe, expect, it, vi } from "vitest"; -import { importFreshModule } from "./helpers/import-fresh.js"; +import { importFreshModule } from "./helpers/import-fresh.ts"; import { cleanupTempDirs, makeTempDir } from "./helpers/temp-dir.js"; import { installTestEnv } from "./test-env.js"; diff --git a/test/vitest-unit-fast-config.test.ts b/test/vitest-unit-fast-config.test.ts index c6d07202ac7..f6e5879278e 100644 --- a/test/vitest-unit-fast-config.test.ts +++ b/test/vitest-unit-fast-config.test.ts @@ -43,7 +43,7 @@ describe("unit-fast vitest lane", () => { it("keeps obvious stateful files out of the unit-fast lane", () => { expect(isUnitFastTestFile("src/plugin-sdk/temp-path.test.ts")).toBe(false); expect(isUnitFastTestFile("src/agents/sandbox.resolveSandboxContext.test.ts")).toBe(false); - expect(isUnitFastTestFile("src/crestodian/overview.test.ts")).toBe(false); + expect(isUnitFastTestFile("src/crestodian/audit.test.ts")).toBe(false); expect(isUnitFastTestFile("src/proxy-capture/runtime.test.ts")).toBe(false); expect(isUnitFastTestFile("src/security/windows-acl.test.ts")).toBe(false); expect(resolveUnitFastTestIncludePattern("src/plugin-sdk/temp-path.ts")).toBeNull();