vitest/test/stacktraces/fixtures/error-with-stack.test.js

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!')
}