What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-11 04:35:13
mock a function jest react
import React from 'react'; import { render } from '@testing-library/react'; import '@testing-library/jest-dom/extend-expect' import App from './App'; import { randomNameGenerator } from "./utils"; jest.mock('./utils.js', () => ({ randomN... Add solution
Best helpers
+10
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5