mirror of
https://github.com/vitest-dev/vitest.git
synced 2026-02-01 17:36:51 +00:00
14 lines
348 B
TypeScript
14 lines
348 B
TypeScript
import { expect } from 'vitest'
|
|
import { runVitest, test } from '../utils'
|
|
|
|
test('mocking in JS test file should not crash source map lookup (#3514)', async () => {
|
|
const { exitCode } = await runVitest({
|
|
include: ['fixtures/test/mocking-in-js-file.test.js'],
|
|
coverage: {
|
|
reporter: 'json',
|
|
},
|
|
})
|
|
|
|
expect(exitCode).toBe(0)
|
|
})
|