Skip to content

issues Search Results · repo:IanVS/vitest-fetch-mock language:JavaScript

Filter by

6 results
 (53 ms)

6 results

inIanVS/vitest-fetch-mock (press backspace or delete to remove)

Updating to vitest 2 causes TypeScript errors for me since it seems like the typings for Mock have changed. Specifically I think the following code: https://github.com/IanVS/vitest-fetch-mock/blob/7450d033c809929462d2af50fa294cf4731150fd/types/index.d.ts#L20-L21 ...
  • birtles
  • 2
  • Opened 
    on Jul 9, 2024
  • #17

For example , the code below I would like to use a delay property to simulate a slow response fetchMocker.mockIf(/http:\/\/[^/]+:?\d*\/api\/slow/, async (req) = { if (req.method === DELETE ) { return { ...
  • jesus-dayo
  • 1
  • Opened 
    on Oct 18, 2023
  • #15

I m make a setup to a repo on my github with vitest-fetch-mock, a file under the projet import the fetch from the cross-fetch module, but when i mock on test, this appers dont work, after sometime i found ...
  • leoferreiralima
  • Opened 
    on Sep 12, 2023
  • #13

Bug Getting the following error with vitest-fetch-mock@0.2.2 and TypeScript 5: CleanShot 2023-04-03 at 13 38 47 Could not find a declaration file for module vitest-fetch-mock . /Users/drew/Sites/drwpow/openapi-fetch/node_modules/.pnpm/vitest-fetch-mock@0.2.2_vitest@0.29.8/node_modules/vitest-fetch-mock/src/index.js ...
  • drwpow
  • 4
  • Opened 
    on Apr 3, 2023
  • #10

The example showcases a fetch call made using return fetch( https://google.com );, which then gets tested using expect(fetch.mock.calls[0][0]).toEqual( https://google.com ); This seems rather brittle ...
enhancement
help wanted
  • stefnotch
  • 4
  • Opened 
    on Feb 3, 2023
  • #6

SpyInstanceFn is no longer available in vitest and has been renamed to SpyInstance. Is it possible to have vitest updated for this package?
  • gooftroop
  • 2
  • Opened 
    on Jul 5, 2022
  • #2
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub