Route tests through a #testing alias, ban ../ imports, and document the alias ownership rule
Check / check (pull_request) Successful in 46s

This commit is contained in:
Danny Kim
2026-10-17 14:45:52 +09:00
parent 15fe481181
commit bfa8269801
15 changed files with 103 additions and 65 deletions
+8 -1
View File
@@ -1,4 +1,6 @@
// Test support: the current user's IDs and a fresh temporary directory.
// Test support: the current user's IDs and a fresh temporary directory, plus
// the source helpers that the repository-level tests in tests/ need. Those
// tests sit outside src/ and reach it only through the `#testing` alias.
import { mkdtemp } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
@@ -21,3 +23,8 @@ export const IS_WINDOWS: boolean = process.platform === "win32";
export function makeTempDir(): Promise<string> {
return mkdtemp(join(tmpdir(), "bot-agents-test-"));
}
export { output } from "./command.ts";
export { isNotFound } from "./errors.ts";
export { isMapping } from "./json.ts";
export type { JsonObject } from "./json.ts";