test: reorganize fixture files into modality-first layout (phase 6b)

Move all fixture files from flat/mixed dirs (content/, media/, documents/,
formats/, hostile/, root loose) into the modality-first hierarchy:
image/{valid,formats,edge,hostile}, video/{valid,formats,hostile},
audio/{valid,formats,hostile}, document/{valid,formats,edge,hostile},
data/valid/, security/. Update index.ts paths, fixtureDir aliases,
all literal refs in 17 e2e/qa/script files, manifest.json, and the
three generator scripts. 163 files moved, 0 dropped, 100 new tests
from expanded document scan.
This commit is contained in:
SnapOtter
2026-06-20 05:51:17 +08:00
parent 1727a7a73e
commit 941ed27912
199 changed files with 560 additions and 429 deletions
@@ -7,10 +7,10 @@ import { MediaInputHandler } from "../../../apps/api/src/modality/media-input.js
import { fixtureRoot } from "../../fixtures/index.js";
const FIX = fixtureRoot;
const MP4 = readFileSync(join(FIX, "media", "tiny.mp4"));
const MP3 = readFileSync(join(FIX, "media", "tiny.mp3"));
const SRT = readFileSync(join(FIX, "media", "tiny.srt"));
const PNG = readFileSync(join(FIX, "test-200x150.png"));
const MP4 = readFileSync(join(FIX, "video", "formats", "tiny.mp4"));
const MP3 = readFileSync(join(FIX, "audio", "formats", "tiny.mp3"));
const SRT = readFileSync(join(FIX, "video", "formats", "tiny.srt"));
const PNG = readFileSync(join(FIX, "image", "valid", "test-200x150.png"));
function scratch(): { scratchDir: string } {
return { scratchDir: mkdtempSync(join(tmpdir(), "media-kinds-")) };