Files
deepseek-harness/scripts/doc-typecheck-paths.spec.ts
T
Turtle f028f25667 refactor: remove runtime invariant plugins
Delete @deepseek-ai/dsh-invariants, every package's ./invariant companion
and its tests, the invariant gates and Vitest setup, the scoped-event
resolver generator, and the INVARIANT-coded listener rethrow paths.
Update docs, READMEs, Agent Notes, and add an upgrade guide.
2026-09-30 12:52:18 +08:00

18 lines
811 B
TypeScript

import { describe, expect, it } from 'vitest'
import { builtDeclarationPath } from './doc-typecheck-paths.ts'
describe('builtDeclarationPath', () => {
it('maps package source directories and exact entry files to built declarations', () => {
expect(builtDeclarationPath('./packages/*/*/src')).toBe('./packages/*/*/lib/types')
expect(builtDeclarationPath('./packages/core/session/src/index.ts'))
.toBe('./packages/core/session/lib/types/index.d.ts')
expect(builtDeclarationPath('./packages/core/session/src/types.ts'))
.toBe('./packages/core/session/lib/types/types.d.ts')
})
it('rejects aliases without a supported source target', () => {
expect(() => builtDeclarationPath('./packages/core/session/source/index.ts'))
.toThrow('cannot map workspace source path')
})
})