Skip to content

Commit f16d5cf

Browse files
committed
[types] Matcher type
1 parent 0a9ee46 commit f16d5cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/unit/common/expect.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ import {expect} from 'vitest';
33
import type {Id} from 'tinybase';
44
import {Listener} from './types.ts';
55

6+
declare global {
7+
// eslint-disable-next-line @typescript-eslint/no-namespace
8+
namespace jest {
9+
interface Matchers<R> {
10+
toEqualWithOrder(expected: any): R;
11+
}
12+
}
13+
}
14+
615
export const expectChanges = (
716
listener: Listener,
817
id: Id,

0 commit comments

Comments
 (0)