mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
16 lines
418 B
TypeScript
16 lines
418 B
TypeScript
import { expect, test } from 'vitest'
|
|
import { browser, runBrowserTests } from './utils'
|
|
|
|
test('prints correct unhandled error stack', async () => {
|
|
const { stderr } = await runBrowserTests({
|
|
root: './fixtures/unhandled',
|
|
})
|
|
|
|
if (browser === 'webkit') {
|
|
expect(stderr).toContain('throw-unhandled-error.test.ts:9:20')
|
|
}
|
|
else {
|
|
expect(stderr).toContain('throw-unhandled-error.test.ts:9:10')
|
|
}
|
|
})
|