eslint-plugin-jest icon indicating copy to clipboard operation
eslint-plugin-jest copied to clipboard

Feature request: prefer not.toHaveBeenCalled()

Open geoffswift opened this issue 1 year ago • 1 comments

Idea for new rule:

FAIL:

expect(method.mock.calls).toHaveLength(0);

WIN:

expect(method).not.toHaveBeenCalled();

geoffswift avatar May 16 '24 07:05 geoffswift

This is related / similar to https://github.com/jest-community/eslint-plugin-jest/issues/1198

geoffswift avatar May 16 '24 07:05 geoffswift