2 Matching Annotations
  1. Last 7 days
    1. All vi.mock calls are placed at the top of the file, and it's the first thing that's getting called. To change implementation for different tests, you can do: vi.spyOn(fs, 'existsSync').mockImplementation(() => { // new implementation })