UNPKG

react-testing-library

Version:

Simple and complete React DOM testing utilities that encourage good testing practices.

9 lines (7 loc) 319 B
module.exports = { get: jest.fn(() => Promise.resolve({data: {}})), } // Note: // For now we don't need any other method (POST/PUT/PATCH), what we have already works fine. // We will add more methods only if we need to. // For reference please read: https://github.com/testing-library/react-testing-library/issues/2