MCPcopy
hub / github.com/snyk/cli / CustomMatchers

Interface CustomMatchers

test/jest/util/startSnykCLI.ts:336–349  ·  view source on GitHub ↗

* To use custom matchers, Jest will expose these methods when using expect().

Source from the content-addressed store, hash-verified

334 * To use custom matchers, Jest will expose these methods when using expect().
335 */
336interface CustomMatchers<R = unknown> {
337 /**
338 * Waits for the process' stdout to display the given pattern.
339 */
340 toDisplay(expected: string, options?: CustomMatcherOptions): Promise<R>;
341 /**
342 * Waits for the process' stderr to display the given pattern.
343 */
344 toDisplayError(expected: string, options?: CustomMatcherOptions): Promise<R>;
345 /**
346 * Waits for the process to exit and asserts its exit code.
347 */
348 toExitWith(expected: number, options?: CustomMatcherOptions): Promise<R>;
349}
350
351/**
352 * Disabling various linter errors because these lines are straight from Jest's

Callers 8

startProxyEnvironmentFunction · 0.80
chisel.spec.tsFile · 0.80
container.spec.tsFile · 0.80
create-app.spec.tsFile · 0.80
stopProxyEnvironmentFunction · 0.80
getProxyAccessLogFunction · 0.80
create-app.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected