File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ Jest is a JavaScript runtime developed by Facebook that is usually used for test
4
4
Because Jest is designed primarily for testing React applications, using it to test Node.js server-side applications comes with a lot of caveats.
5
5
We strongly recommend using a different testing framework, like [ Mocha] ( https://mochajs.org/ ) .
6
6
7
+ To suppress any Jest warnings from Mongoose, set the ` SUPPRESS_JEST_WARNINGS ` environment variable:
8
+
9
+ ```
10
+ env SUPPRESS_JEST_WARNINGS=1 npm test
11
+ ```
12
+
7
13
If you choose to delve into dangerous waters and test Mongoose apps with Jest, here's what you need to know:
8
14
9
15
<h2 id =" recommended-testenvironment " ><a href =" #recommended-testenvironment " >Recommended <code >testEnvironment</code ></a ></h2 >
You can’t perform that action at this time.
0 commit comments