mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
22 lines
220 B
JavaScript
22 lines
220 B
JavaScript
import { test } from 'vitest'
|
|
|
|
test('error in deps', () => {
|
|
a()
|
|
})
|
|
|
|
function a() {
|
|
b()
|
|
}
|
|
|
|
function b() {
|
|
c()
|
|
}
|
|
|
|
function c() {
|
|
d()
|
|
}
|
|
|
|
function d() {
|
|
throw new Error('Something truly horrible has happened!')
|
|
}
|