Alright, so I’ve been trying to get Wallaby.js to work with Webstorm for the last 2 weeks, been going on with Wallaby.js Support and seems its impossible that I can use it with Meteor packages (Ex. xolvio:cleaner) We have Mocha/Chai/Sinon and we really like the approach of real time testing from Wallaby,
This is the last email I got from Wallaby support:
Hi Luis,
Thanks for the sample repo. We couldn’t get this working because the configJson.clientPaths that was referenced on line 269 of your config did not exist. It looks like this was due to a change in July 2018 (https://github.com/meteor/meteor/commit/159fcb38189c8e653a7b5babb2e1150c1750530d This link has not been clicked (https://github.com/meteor/meteor/commit/159fcb38189c8e653a7b5babb2e1150c1750530d)) which breaks the configuration file you were using.
We commented out that override and then ran into a problem, Cannot find module 'meteor/meteor'. This is because the configuration is not actually running in the meteor runtime and there’s no library/references to load the meteor components.
We did some research and got this up and running using jest with jest-meteor-stubs (https://github.com/orangecms/jest-meteor-stubsThis link has not been clicked (https://github.com/orangecms/jest-meteor-stubs)).
We’ve checked in our changes to a fork of your repo so you can see it all working: https://github.com/wallabyjs/meteor-wallaby_not-workingThis link has not been clicked (https://github.com/wallabyjs/meteor-wallaby_not-working).
A few things to note:
- We cleaned up the directory structure a little so that node_modules is in the root of the project. You can of course adjust to suit, but Wallaby works best if you have node_modules in your project root.
- You can run npm run test to run jest and your tests from the CLI
- You no longer need to run the meteor app in order to run the current set of tests
So it seems that https://github.com/meteor/meteor/commit/159fcb38189c8e653a7b5babb2e1150c1750530d broke the configuration I was trying to use that imports meteor packages.
Any help will be highly appreciated!