If you are using TypeScript and receive errors about the fetchMock global not existing, add a global.d.ts file to the root of your project (or add the following line to an existing global file):import 'jest-fetch-mock'If you prefer you can also just import the fetchMock in a test ...
The open LMS by Instructure, Inc. Contribute to GA-Devs/canvas-lms development by creating an account on GitHub.
If you are using TypeScript and receive errors about the fetchMock global not existing, add a global.d.ts file to the root of your project (or add the following line to an existing global file): import 'vitest-fetch-mock'; API Mock Responses fetch.mockResponse(bodyOrFunction, init): ...