test: fix core support boundary helpers

This commit is contained in:
Peter Steinberger
2026-04-28 03:43:40 +01:00
parent 07494a43fc
commit e9611e74a1
5 changed files with 16 additions and 2 deletions

View File

@@ -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";

View File

@@ -0,0 +1 @@
export { importFreshModule } from "../../src/plugin-sdk/test-helpers/import-fresh.js";

View File

@@ -0,0 +1 @@
export { normalizeTranscriptForMatch } from "../../src/plugin-sdk/test-helpers/stt-live-audio.js";

View File

@@ -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";

View File

@@ -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();