File size: 328 Bytes
1d59285
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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)
})