* To use custom matchers, Jest will expose these methods when using expect().
| 334 | * To use custom matchers, Jest will expose these methods when using expect(). |
| 335 | */ |
| 336 | interface 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 |
no outgoing calls
no test coverage detected