Meteor test very long build times

The trick is indeed to use npm packages whenever possible.

If you really want to use the meteor lodash package (although I cannot come up with a reason why), you should be able to replace the meteor lodash package by an npm lodash module while running the tests.

Be sure to use npm install --save-dev lodash in that case to prevent a double presence in your production code.

And be sure to npm install the same version as your meteor package. Because you won’t be testing the same functionality otherwise.

2 Likes