mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
18 lines
655 B
TypeScript
18 lines
655 B
TypeScript
/** Repository-wide canonical-layout check for committed session fixtures. */
|
|
|
|
import { resolve } from 'node:path'
|
|
import { expect, it } from 'vitest'
|
|
import { inspectSessionFixtureLayouts } from './session-fixture-layout.ts'
|
|
|
|
const root = resolve(import.meta.dirname, '..')
|
|
|
|
it('keeps every session-format JSONL fixture in canonical packed layout', () => {
|
|
const nonCanonical = inspectSessionFixtureLayouts(root)
|
|
.filter(fixture => fixture.source !== fixture.canonical)
|
|
.map(fixture => fixture.path)
|
|
expect(
|
|
nonCanonical,
|
|
'Run `pnpm run migrate:packed-session-fixtures` and commit the mechanical fixture rewrite.',
|
|
).toEqual([])
|
|
})
|