feat: use vitest controlled api-snapshot
This commit is contained in:
8 files changed
+71
-25
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { guardStaleBuild } from 'tsdown-stale-guard'
|
||||
import { snapshotApiPerEntry } from 'tsnapi/vitest'
|
||||
import { beforeAll, describe } from 'vitest'
|
||||
|
||||
const root = fileURLToPath(new URL('..', import.meta.url))
|
||||
|
||||
describe('api snapshot', () => {
|
||||
beforeAll(async () => {
|
||||
await guardStaleBuild({ root })
|
||||
})
|
||||
|
||||
snapshotApiPerEntry(root)
|
||||
})
|
||||
Reference in new issue
Block a user