MCPcopy
hub / github.com/vitejs/vite / getError

Function getError

playground/js-sourcemap/test-ssr-dev.js:28–37  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

26}
27
28async function getError(f) {
29 let error
30 try {
31 await f()
32 } catch (e) {
33 error = e
34 }
35 assert.ok(error)
36 return error
37}
38
39runTest()

Callers 1

runTestFunction · 0.70

Calls 1

fFunction · 0.50

Tested by

no test coverage detected