Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
195 B · 6 lines
TypeScript
at release
1234567import { expect, test } from 'vitest'
test('a dynamic import gets the mock from the setup file', async () => { const { answer } = await import('./source') expect(answer()).toBe('mocked')})