src/expectations/matches.ts
import { Answerable, Expectation } from '@serenity-js/core';
export function matches(expected: Answerable<RegExp>): Expectation<RegExp, string> {
return Expectation.thatActualShould<RegExp, string>('match', expected)
.soThat((actualValue, expectedValue) => expectedValue.test(actualValue));
}