Dataset Emitter.Test
Path:
loom-sprint-scaffold/loom/tests/synthesis/dataset-emitter.test.tsRelative: loom/tests/synthesis/dataset-emitter.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 245Bytes: 8,772Imports: 4Exports: 0has tests
Content Preview
- /**
- * Tests for H5.6 — Dataset Emitter.
- *
- * Proves:
- * - extractDatasetTuples extracts (failure_pattern, root_cause, intervention)
- * - Golden trace IDs reference real corpus trace IDs
- * - buildDatasetJsonl produces parseable JSONL
- * - Every line of JSONL is independently JSON-parseable
- * - Empty input → empty tuples
- * - No failures → empty tuples
- * - writeDataset writes to BlobStore
- */
- import { describe, expect, test } from "bun:test";
- import {
- extractDatasetTuples,