Skip to content

Commit

Permalink
fix: use "use" method from chai directly
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Feb 7, 2024
1 parent 23ca89a commit 1be35f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/expect/src/jest-extend.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { util } from 'chai'
import { use, util } from 'chai'
import type {
ChaiPlugin,
ExpectStatic,
Expand Down Expand Up @@ -139,6 +139,6 @@ function JestExtendPlugin(expect: ExpectStatic, matchers: MatchersObject): ChaiP

export const JestExtend: ChaiPlugin = (chai, utils) => {
utils.addMethod(chai.expect, 'extend', (expect: ExpectStatic, expects: MatchersObject) => {
chai.use(JestExtendPlugin(expect, expects))
use(JestExtendPlugin(expect, expects))
})
}

0 comments on commit 1be35f3

Please sign in to comment.