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

Function toBeJestCompatible

test/core/test/expect-poll.test.ts:88–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 let idx = 0
87 expect.extend({
88 toBeJestCompatible() {
89 idx++
90 fn({ poll: this.poll })
91 return {
92 pass: idx > 2,
93 message: () => 'ok',
94 }
95 },
96 })
97 await expect.poll(() => 1, { interval: 10 }).toBeJestCompatible()
98 expect(fn).toHaveBeenCalledTimes(3)

Callers

nothing calls this directly

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected