mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Rule Detail: [link](https://github.com/jest-community/eslint-plugin-jest/blob/main/src/rules/prefer-called-with.ts)
27 lines
1 KiB
Text
27 lines
1 KiB
Text
---
|
|
source: crates/oxc_linter/src/tester.rs
|
|
assertion_line: 150
|
|
expression: prefer_called_with
|
|
---
|
|
⚠ eslint-plugin-jest(prefer-called-with): Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`.
|
|
╭─[prefer_called_with.tsx:1:1]
|
|
1 │ expect(fn).toBeCalled();
|
|
· ──────────
|
|
╰────
|
|
help: Prefer toBeCalledWith(/* expected args */)
|
|
|
|
⚠ eslint-plugin-jest(prefer-called-with): Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`.
|
|
╭─[prefer_called_with.tsx:1:1]
|
|
1 │ expect(fn).resolves.toBeCalled();
|
|
· ──────────
|
|
╰────
|
|
help: Prefer toBeCalledWith(/* expected args */)
|
|
|
|
⚠ eslint-plugin-jest(prefer-called-with): Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`.
|
|
╭─[prefer_called_with.tsx:1:1]
|
|
1 │ expect(fn).toHaveBeenCalled();
|
|
· ────────────────
|
|
╰────
|
|
help: Prefer toHaveBeenCalledWith(/* expected args */)
|
|
|
|
|