I'm using mocha and chai for testing my Meteor app and have a module that uses the document object. The test is running on the server which of course triggers "document is not defined." What's a good way to mock the document object or to otherwise perform tests with a module that uses the document?
I've tried jsdom, jsdomify, and etc. and I've also tried following the Meteor Guide's testing sections for integration testing and full-app testing but I have become stuck.
Any suggestions or examples of using a package like jsdom with meteor would be much appreciated. Thanks!
Aucun commentaire:
Enregistrer un commentaire