UNPKG

vitest-plugin-vis

Version:
10 lines (8 loc) 272 B
import { afterEach, beforeAll } from 'vitest' import { setAutoSnapshotOptions } from '../index.ts' import { vis } from '../setup.ts' beforeAll(async () => { await vis.beforeAll.setup() setAutoSnapshotOptions(true) }) afterEach(() => vis.afterEach.matchImageSnapshot())