Skip to content

Commit fcc44c3

Browse files
committed
Make sure custom matchers remain as interfaces
1 parent ccf638e commit fcc44c3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/toolkit/src/tests/utils/CustomMatchers.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/consistent-type-definitions */
12
import type { Assertion, AsymmetricMatchersContaining } from 'vitest'
23

34
interface CustomMatchers<R = unknown> {

packages/toolkit/vitest.setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ afterAll(() => {
2626

2727
declare global {
2828
namespace jest {
29+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
2930
interface Matchers<R> {
3031
toHaveConsoleOutput(expectedOutput: string): Promise<R>
3132
toMatchSequence(...matchers: Array<(arg: any) => boolean>): R

0 commit comments

Comments
 (0)