MCPcopy
hub / github.com/microsoft/playwright / assert

Function assert

packages/isomorphic/assert.ts:17–20  ·  view source on GitHub ↗
(value: any, message?: string)

Source from the content-addressed store, hash-verified

15 */
16
17export function assert(value: any, message?: string): asserts value {
18 if (!value)
19 throw new Error(message || 'Assertion error');
20}

Callers 15

encodeIntegerMethod · 0.90
encodeSetMethod · 0.90
_runMethod · 0.90
_authenticateMethod · 0.90
_parseRequestMethod · 0.90
createWebSocketMethod · 0.90
startMethod · 0.90
createTLSSocketFunction · 0.90
launchMethod · 0.90
connectMethod · 0.90
connectOverCDPMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…