MCPcopy
hub / github.com/vitest-dev/vitest / JestExtend

Function JestExtend

packages/expect/src/jest-extend.ts:218–226  ·  view source on GitHub ↗
(chai, utils)

Source from the content-addressed store, hash-verified

216}
217
218export const JestExtend: ChaiPlugin = (chai, utils) => {
219 utils.addMethod(
220 chai.expect,
221 'extend',
222 (expect: ExpectStatic, expects: MatchersObject) => {
223 use(JestExtendPlugin(chai, expect, expects))
224 },
225 )
226}

Callers

nothing calls this directly

Calls 2

JestExtendPluginFunction · 0.85
useFunction · 0.50

Tested by

no test coverage detected