4 Matching Annotations
  1. Oct 2025
    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 })
  2. Jun 2025
  3. Sep 2023