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
It works normally when using Jest alone, but when I try to use with Wallaby, I get the following error:
TypeError: Cannot read property 'getConnectionString' of undefined at MongoEnvironment.setup (<path>/mongo-environment.js:11:56) at <path>/node_modules/jest-runner/build/run_test.js:71:23 at Generator.next (<anonymous>) at step (<path>/node_modules/jest-runner/build/run_test.js:147:191) at <path>/node_modules/jest-runner/build/run_test.js:147:437 at Promise (<anonymous>) at <path>/node_modules/jest-runner/build/run_test.js:147:99 at runTestInternal (<path>/node_modules/jest-runner/build/run_test.js:103:17) at <path>/node_modules/jest-runner/build/run_test.js:161:23 at Generator.next (<anonymous>) at step (<path>/node_modules/jest-runner/build/run_test.js:147:191) at <path>/node_modules/jest-runner/build/run_test.js:147:437 at Promise (<anonymous>) at <path>/node_modules/jest-runner/build/run_test.js:147:99 at runTest (<path>/node_modules/jest-runner/build/run_test.js:174:18) at <path>/node_modules/jest-runner/build/index.js:67:64 at Generator.next (<anonymous>) at step (<path>/node_modules/jest-runner/build/index.js:29:191) at <path>/node_modules/jest-runner/build/index.js:29:361 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7)
How can I make it work? It seems that Wallaby can't run the Jest Setup file.
Thanks for providing the repo. There was a bug with Jest globalSetup support in wallaby. The issue is fixed and the fix is published in the latest core version.
Issue description or question
I am trying to test my MongoDB repositories with this implementation /~https://github.com/vladgolubev/jest-mongodb
It works normally when using Jest alone, but when I try to use with Wallaby, I get the following error:
TypeError: Cannot read property 'getConnectionString' of undefined at MongoEnvironment.setup (<path>/mongo-environment.js:11:56) at <path>/node_modules/jest-runner/build/run_test.js:71:23 at Generator.next (<anonymous>) at step (<path>/node_modules/jest-runner/build/run_test.js:147:191) at <path>/node_modules/jest-runner/build/run_test.js:147:437 at Promise (<anonymous>) at <path>/node_modules/jest-runner/build/run_test.js:147:99 at runTestInternal (<path>/node_modules/jest-runner/build/run_test.js:103:17) at <path>/node_modules/jest-runner/build/run_test.js:161:23 at Generator.next (<anonymous>) at step (<path>/node_modules/jest-runner/build/run_test.js:147:191) at <path>/node_modules/jest-runner/build/run_test.js:147:437 at Promise (<anonymous>) at <path>/node_modules/jest-runner/build/run_test.js:147:99 at runTest (<path>/node_modules/jest-runner/build/run_test.js:174:18) at <path>/node_modules/jest-runner/build/index.js:67:64 at Generator.next (<anonymous>) at step (<path>/node_modules/jest-runner/build/index.js:29:191) at <path>/node_modules/jest-runner/build/index.js:29:361 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7)
How can I make it work? It seems that Wallaby can't run the Jest Setup file.
Wallaby.js configuration file
Code editor or IDE name and version
WebStorm v2017.2.2
OS name and version
OSX 10.13.4
The text was updated successfully, but these errors were encountered: