mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:10:43 +00:00
test: fix core support boundary helpers
This commit is contained in:
12
test/helpers/bundled-plugin-paths.ts
Normal file
12
test/helpers/bundled-plugin-paths.ts
Normal 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";
|
||||
1
test/helpers/import-fresh.ts
Normal file
1
test/helpers/import-fresh.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { importFreshModule } from "../../src/plugin-sdk/test-helpers/import-fresh.js";
|
||||
1
test/helpers/stt-live-audio.ts
Normal file
1
test/helpers/stt-live-audio.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { normalizeTranscriptForMatch } from "../../src/plugin-sdk/test-helpers/stt-live-audio.js";
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user