We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mongoosejs
Learn more about funding links in repositories.
Report abuse
1 parent eb28aaf commit 0ab335fCopy full SHA for 0ab335f
docs/jest.md
@@ -4,6 +4,12 @@ Jest is a JavaScript runtime developed by Facebook that is usually used for test
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
We strongly recommend using a different testing framework, like [Mocha](https://mochajs.org/).
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
13
If you choose to delve into dangerous waters and test Mongoose apps with Jest, here's what you need to know:
14
15
<h2 id="recommended-testenvironment"><a href="#recommended-testenvironment">Recommended <code>testEnvironment</code></a></h2>
0 commit comments