mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
15 lines
464 B
TypeScript
15 lines
464 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { isBuild, serverLogs } from '~utils'
|
|
|
|
test.runIf(!isBuild)('should not output missing source file warning', () => {
|
|
serverLogs.forEach((log) => {
|
|
expect(log).not.toMatch(/Sourcemap for .+ points to missing source files/)
|
|
})
|
|
})
|
|
|
|
test.runIf(isBuild)('should not output sourcemap warning (#4939)', () => {
|
|
serverLogs.forEach((log) => {
|
|
expect(log).not.toMatch('Sourcemap is likely to be incorrect')
|
|
})
|
|
})
|