From 586805b58def9be379447192d9c6fa3ecb710da8 Mon Sep 17 00:00:00 2001 From: Victor Martins Date: Tue, 18 Sep 2018 17:49:44 -0300 Subject: [PATCH] Reference about the mocks folder I've added a reference about the manual mocks when importing 'axiosMock'. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 17761ff1..c6fa7adc 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,10 @@ import React from 'react' import {render, fireEvent, cleanup, waitForElement} from 'react-testing-library' // this adds custom jest matchers from jest-dom import 'jest-dom/extend-expect' -import axiosMock from 'axios' // the mock lives in a __mocks__ directory + +// the mock lives in a __mocks__ directory +// to know more about manual mocks, access: https://jestjs.io/docs/en/manual-mocks +import axiosMock from 'axios' import Fetch from '../fetch' // see the tests for a full implementation // automatically unmount and cleanup DOM after the test is finished.