Skip to content

Commit

Permalink
fix: allow redefining global expect, closes #1496
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jun 16, 2022
1 parent 59aa8e5 commit df0e69c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vitest/src/integrations/chai/index.ts
Expand Up @@ -67,6 +67,8 @@ const globalExpect = createExpect()

Object.defineProperty(globalThis, GLOBAL_EXPECT, {
value: globalExpect,
writable: true,
configurable: true,
})

export { assert, should } from 'chai'
Expand Down

0 comments on commit df0e69c

Please sign in to comment.