From 6ff0ceec90c602a444f8c75a7a48e1fbf92b8164 Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Wed, 11 Dec 2024 14:11:41 +0100 Subject: [PATCH] =?UTF-8?q?Change=20jest.fn=20=E2=86=92=20vi.fn=20in=20`pr?= =?UTF-8?q?efer-called-with`=20rule=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/rules/prefer-called-with.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/rules/prefer-called-with.md b/docs/rules/prefer-called-with.md index 399d511f..cc26bf5c 100644 --- a/docs/rules/prefer-called-with.md +++ b/docs/rules/prefer-called-with.md @@ -14,7 +14,7 @@ Examples of **incorrect** code for this rule: ```ts test('foo', () => { - const mock = jest.fn() + const mock = vi.fn() mock('foo') expect(mock).toBeCalled() expect(mock).toHaveBeenCalled() @@ -25,9 +25,9 @@ Examples of **correct** code for this rule: ```ts test('foo', () => { - const mock = jest.fn() + const mock = vi.fn() mock('foo') expect(mock).toBeCalledWith('foo') expect(mock).toHaveBeenCalledWith('foo') }) -``` \ No newline at end of file +```