eslint-plugin-jest
eslint-plugin-jest copied to clipboard
Feature request: prefer not.toHaveBeenCalled()
Idea for new rule:
FAIL:
expect(method.mock.calls).toHaveLength(0);
WIN:
expect(method).not.toHaveBeenCalled();
This is related / similar to https://github.com/jest-community/eslint-plugin-jest/issues/1198