Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitest-dev/vitest
/ reject
Function
reject
test/core/test/snapshot-async.test.ts:6–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4
return
Promise.resolve(
'foo'
)
5
}
6
function
reject() {
7
return
Promise.reject(
new
Error(
'foo'
))
8
}
9
10
test(
'resolved inline'
,
async
() => {
11
await
expect(resolve()).resolves.toMatchInlineSnapshot(
'"foo"'
)
Callers
14
web-worker-jsdom.test.ts
File · 0.70
dom.test.ts
File · 0.70
unhandled-skip.test.ts
File · 0.70
web-worker-node.test.ts
File · 0.70
sendEventMessage
Function · 0.70
sendOnMessage
Function · 0.70
snapshot-async.test.ts
File · 0.70
jest-expect.test.ts
File · 0.70
open
Method · 0.50
read
Method · 0.50
basic.test.ts
File · 0.50
waitForOutput
Method · 0.50
Calls
1
reject
Method · 0.45
Tested by
no test coverage detected