crivo-web / tests /example.test.ts
dizyann's picture
refactor: remove legacy examples and refresh model documentation
1d59285
Raw History Blame Contribute Delete
328 Bytes
import { expect, test } from 'bun:test'
import { input } from '../examples/basic/input.js'
test('CLI JSON example matches the typed source (regenerate with bun run examples:generate)', async () => {
const json = await Bun.file(new URL('../examples/basic/input.json', import.meta.url)).json()
expect(json).toEqual(input)
})