mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
13 lines
311 B
TypeScript
13 lines
311 B
TypeScript
/*
|
|
* Custom coverage provider specific test cases
|
|
*/
|
|
|
|
import { readFileSync } from 'fs'
|
|
import { expect, test } from 'vitest'
|
|
|
|
test('custom json report', async () => {
|
|
const report = readFileSync('./coverage/custom-coverage-provider-report.json', 'utf-8')
|
|
|
|
expect(JSON.parse(report)).toMatchSnapshot()
|
|
})
|