Where should unit tests be placed in Meteor?

后端 未结 4 2063
悲哀的现实
悲哀的现实 2021-02-01 19:12

Is there a place where my tests can live without being run by Meteor?

I just started my first Meteor project, and began by writing unit tests with Mocha

4条回答
  •  既然无缘
    2021-02-01 19:57

    As of 0.6.0, an interesting approach is to exclusively use local smart packages for your app, which can be easily tested using Meteor's tinytest. You would have the bare minimum code residing outside of smart packages to bootstrap your app.

    EDIT: I've done this approach, and I don't even need bare minimum code residing outside of smart packages. The whole app is packages.

提交回复
热议问题