You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
The
global
variable whentestEnvironment == 'node'
is not shared between tests and global setup/teardown scripts as shown here:http://jestjs.io/docs/en/mongodb#docsNav
http://jestjs.io/docs/en/configuration#globalsetup-string
To Reproduce
in package.json
Expected behavior
Desired
Run only once a global unique
afterAll
orbeforeAll
for all the tests.npx envinfo --preset jest
System: OS: macOS High Sierra 10.13.5 CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz Binaries: Node: 10.5.0 - /usr/local/bin/node npm: 6.1.0 - /usr/local/bin/npm npmPackages: jest: ^23.2.0 => 23.2.0
The text was updated successfully, but these errors were encountered: