Skip to content

Commit

Permalink
just import fuzz for fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz committed Oct 11, 2023
1 parent 2f3bf86 commit 7927040
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vitest/test/vitest-fast-check.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,10 @@ async function writeToFile(
runner === 'it'
? (testCode: string) => `describe('test suite', () => {\n${testCode}\n});`
: (testCode: string) => testCode;
const importFromFastCheckVitest = `import {${runner} as runner} from '@fast-check/vitest';\n`;
const importFromFastCheckVitest =
runner === 'fuzz'
? `import {fuzz} from '@fast-check/vitest';\n`
: `import {${runner} as runner} from '@fast-check/vitest';\n`;
const specContent =
"import {describe} from 'vitest';\n" +
"import * as fc from 'fast-check';\n" +
Expand Down

0 comments on commit 7927040

Please sign in to comment.