From 9dc7c08ed89e15e7d6fa687217197bc74eb03ad9 Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Mon, 9 Nov 2020 10:57:19 -0700 Subject: [PATCH] Update README.md Clarify that mock must be called before requiring the corresponding module. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b40bb7f..400681b 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ mock-require is useful if you want to mock `require` statements in Node.js. I wrote it because I wanted something with a straight-forward API that would let me mock anything, from a single exported function to a standard library. +Call `mock` before you `require` the corresponding module. + ## Usage ```javascript