vitest/examples/mocks/test/spaced.spec.ts
Vladimir 235b9502f9
fix: can mock files with space in path (#1457)
* fix: can mock files with space in path

* test: testing files with spaces
2022-06-10 10:10:55 +03:00

8 lines
205 B
TypeScript

import { thisIsOk } from '../src/has space in path'
vi.mock('../src/has space in path', () => ({ thisIsOk: true }))
test('modules with spaces in name is mocked', () => {
expect(thisIsOk).toBe(true)
})