eslint-plugin-jest
eslint-plugin-jest copied to clipboard
Feature request: prefer not.toHaveBeenCalled()
trafficstars
Idea for new rule:
FAIL:
expect(method.mock.calls).toHaveLength(0);
WIN:
expect(method).not.toHaveBeenCalled();