all
config.
🔧 This rule is automatically fixable by the --fix
CLI option.
This rule triggers a warning if an object's property is overwritten with a vitest mock.
Date.now = vi.fn();
Date.now = vi.fn(() => 10);
These patterns would not be considered warnings:
vi.spyOn(Date, 'now');
vi.spyOn(Date, 'now').mockImplementation(() => 10);