Skip to content

Commit 60d6d17

Browse files
authored
fix(expect): don't fail when using jest expect (#4517)
1 parent 56ee702 commit 60d6d17

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/expect/src/jest-extend.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ function getMatcherState(assertion: Chai.AssertionStatic & Chai.Assertion, expec
3333

3434
const matcherState: MatcherState = {
3535
...getState(expect),
36+
// TODO: implement via expect.addEqualityTesters
37+
customTesters: [],
3638
isNot,
3739
utils: jestUtils,
3840
promise,

packages/expect/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface MatcherHintOptions {
2828
}
2929

3030
export interface MatcherState {
31+
customTesters: Array<Tester>
3132
assertionCalls: number
3233
currentTestName?: string
3334
dontThrow?: () => void

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy