Skip to content

Commit 5e6b94c

Browse files
authored
Merge pull request storybookjs#31664 from storybookjs/norbert/vitest-bump-add-custom-matchers
Testing: Fix `toSatisfy`-matcher implementation
2 parents d3a8a18 + 962173a commit 5e6b94c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/core/src/test/expect.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
JestAsymmetricMatchers,
1515
JestChaiExpect,
1616
JestExtend,
17+
customMatchers,
1718
getState,
1819
setState,
1920
} from '@vitest/expect';
@@ -78,6 +79,8 @@ export function createExpect() {
7879
return assert;
7980
};
8081

82+
expect.extend(customMatchers);
83+
8184
// @ts-ignore tsup borks here for some reason
8285
expect.unreachable = (message?: string): never => {
8386
chai.assert.fail(`expected${message ? ` "${message}" ` : ' '}not to be reached`);

0 commit comments

Comments
 (0)