MCPcopy Index your code
hub / github.com/Effect-TS/effect / assertMatch

Function assertMatch

packages/vitest/src/utils.ts:129–133  ·  view source on GitHub ↗
(actual: string, regexp: RegExp, ..._: Array<never>)

Source from the content-addressed store, hash-verified

127 * @since 0.21.0
128 */
129export function assertMatch(actual: string, regexp: RegExp, ..._: Array<never>) {
130 if (!regexp.test(actual)) {
131 fail(`Expected\n\n${actual}\n\nto match\n\n${regexp}`)
132 }
133}
134
135/**
136 * Asserts that `thunk` throws an error.

Callers 1

Context.test.tsFile · 0.90

Calls 1

failFunction · 0.70

Tested by

no test coverage detected