Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 47dc212014f5ed779c09adeeb7e62001135a3e15
parent cb56ff9d4982a9579592f6448592819c76ddc2a9
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri,  9 Oct 2026 12:46:32 -0400

editor: the ops route tests' corpus helper opts its fixture paths out of tracing

next-build-trace.test.mjs scans every module under editor/app that is not a
test file, and _testCorpus.ts (A2b) joins paths off import.meta.dirname; its
calls carry /* turbopackIgnore: true */ as the check asks. Test-only: no route
imports it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/app/api/ops/_testCorpus.ts | 36++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/editor/app/api/ops/_testCorpus.ts b/editor/app/api/ops/_testCorpus.ts @@ -19,9 +19,9 @@ import path from "node:path"; export const TOKEN = "test-token"; -const EDITOR = path.resolve(import.meta.dirname, "..", "..", ".."); -const FIXTURES = path.join(EDITOR, "e2e", "fixtures"); -const BIN = path.join(FIXTURES, "bin"); +const EDITOR = path.resolve(/* turbopackIgnore: true */ import.meta.dirname, "..", "..", ".."); +const FIXTURES = path.join(/* turbopackIgnore: true */ EDITOR, "e2e", "fixtures"); +const BIN = path.join(/* turbopackIgnore: true */ FIXTURES, "bin"); export type OpsCorpus = { root: string; @@ -43,7 +43,7 @@ export async function setupOpsCorpus(fixture: string | null): Promise<OpsCorpus> const settingsFile = path.join(root, "test-settings.json"); await mkdir(transcripts, { recursive: true }); if (fixture) { - await cp(path.join(FIXTURES, "test-transcripts", fixture), transcripts, { + await cp(path.join(/* turbopackIgnore: true */ FIXTURES, "test-transcripts", fixture), transcripts, { recursive: true, }); } @@ -52,23 +52,23 @@ export async function setupOpsCorpus(fixture: string | null): Promise<OpsCorpus> TRANSCRIPTS_DIR: transcripts, EXPORT_PUBLIC_DIR: path.join(transcripts, ".export-public"), SETTINGS_FILE: settingsFile, - YTDLP_BIN: path.join(BIN, "fake-ytdlp.mjs"), - GALLERY_DL_BIN: path.join(BIN, "fake-gallery-dl.mjs"), - FFMPEG_BIN: path.join(BIN, "fake-ffmpeg.mjs"), - FFPROBE_BIN: path.join(BIN, "fake-ffprobe.mjs"), - WHISPER_BIN: path.join(BIN, "fake-whisper.mjs"), + YTDLP_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-ytdlp.mjs"), + GALLERY_DL_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-gallery-dl.mjs"), + FFMPEG_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-ffmpeg.mjs"), + FFPROBE_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-ffprobe.mjs"), + WHISPER_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-whisper.mjs"), WHISPER_MODEL: "/dev/null", - CHOUGH_BIN: path.join(BIN, "fake-chough.mjs"), + CHOUGH_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-chough.mjs"), CHOUGH_MODEL: "/dev/null", - PARAKEET_STITCH_BIN: path.join(BIN, "fake-parakeet-stitch.mjs"), + PARAKEET_STITCH_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-parakeet-stitch.mjs"), PARAKEET_CLI: "/dev/null", PARAKEET_MODEL: "/dev/null", - DIARIZE_BIN: path.join(BIN, "fake-diarize.mjs"), - CLAUDE_BIN: path.join(BIN, "fake-claude.mjs"), - FINDMNT_BIN: path.join(BIN, "fake-findmnt.mjs"), - UDISKSCTL_BIN: path.join(BIN, "fake-udisksctl.mjs"), - WRANGLER_BIN: path.join(BIN, "fake-wrangler.mjs"), - EXPORT_NEXT_BIN: path.join(BIN, "fake-next.mjs"), + DIARIZE_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-diarize.mjs"), + CLAUDE_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-claude.mjs"), + FINDMNT_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-findmnt.mjs"), + UDISKSCTL_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-udisksctl.mjs"), + WRANGLER_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-wrangler.mjs"), + EXPORT_NEXT_BIN: path.join(/* turbopackIgnore: true */ BIN, "fake-next.mjs"), ARCHILYZER_BRANCH: "main", CLOUDFLARE_API_TOKEN: "e2e-fake-token-never-sent", E2E_LIVE_CHECK: "skip", @@ -76,7 +76,7 @@ export async function setupOpsCorpus(fixture: string | null): Promise<OpsCorpus> const writeSettings = async (patch: Record<string, unknown> = {}) => { const base = JSON.parse( - await readFile(path.join(FIXTURES, "test-settings.default.json"), "utf8"), + await readFile(path.join(/* turbopackIgnore: true */ FIXTURES, "test-settings.default.json"), "utf8"), ) as Record<string, unknown>; const merged: Record<string, unknown> = { ...base, ...patch }; for (const [k, v] of Object.entries(patch)) {