-
Notifications
You must be signed in to change notification settings - Fork 85
TypeError: Cannot read property 'getConnectionString' of undefined #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Aha! Judging by your Shall I resurrect #2 ? I'd still like to understand why this is happening 😀 |
Aha, related issue at jestjs/jest#5731 |
I've raised jestjs/jest#6063 and created https://github.com/ojongerius/jest-bug to make it easier for the Jest folks to validate this happens against recent versions of all the things. |
@ojongerius I just updated |
Hey there!
If I pull down your repo and npm install like so:
Running Jest will fail like so:
If I run with --runInBand will succeed:
▶ jest --runInBand Setup MongoDB Test Environment PASS ./mongo-insert.test.js Teardown MongoDB Test Environment Setup MongoDB Test Environment PASS ./mongo-aggregate.test.js Test Suites: 2 passed, 2 total Tests: 3 passed, 3 total Snapshots: 0 total Time: 1.504s Ran all test suites. Teardown mongod Teardown MongoDB Test Environment
And Jest runs that use the cache will succeed to unless you either manually remove the cache or pass --no-cache, ie:
The text was updated successfully, but these errors were encountered: