fix(expect): register extended matchers after native matchers (#6075)

This commit is contained in:
Simon Lecoq 2024-09-29 23:33:03 -04:00 committed by GitHub
parent e43a7df4b6
commit ea8548602e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,8 +181,8 @@ export function expect<T extends Expected = Expected>(
const extendMatchers: Matchers = getExtendMatchers();
const allMatchers = {
...extendMatchers,
...matchers,
...extendMatchers,
};
const matcher = allMatchers[name as MatcherKey] as Matcher;
if (!matcher) {