Add .withDetail() matcher for exceptions

Description

See https://ortussolutions.atlassian.net/browse/TESTBOX-58 for the background to this.

.withDetail(regex) would be a modifying matcher for .toThrow() that specifically checks the exception detail against the regex so that tests have finer-grained control over whether a match was in the message (tested with .toThrow()) or the detail (which is also tested with .toThrow() so you can't otherwise tell which matched).

Assignee

Luis Majano

Reporter

Sean Corfield

Labels

None

Priority

Major
Configure