MCPcopy
hub / github.com/vercel/next.js / assertDefined

Function assertDefined

test/production/graceful-shutdown/index.test.ts:23–25  ·  view source on GitHub ↗
(value: T | void)

Source from the content-addressed store, hash-verified

21let app: Awaited<ReturnType<typeof launchApp>>
22
23function assertDefined<T>(value: T | void): asserts value is T {
24 expect(value).toBeDefined()
25}
26
27describe('Graceful Shutdown', () => {
28 describe('development (next dev)', () => {

Callers 1

runTestsFunction · 0.85

Calls 1

expectFunction · 0.50

Tested by

no test coverage detected