Testing 是否可以使用npm对等依赖项测试meteor包?

Testing 是否可以使用npm对等依赖项测试meteor包?,testing,meteor,Testing,Meteor,我有一个大气包,它依赖于npm包meteor-accounts-t9n。如果可能,可以使用对等依赖项,并使用tmeasday:check npm versions对依赖项进行运行时检查 这对我的主应用程序非常有效,但当我尝试在包上运行测试时,找不到依赖项: Uncaught Error: Cannot find module 'meteor-accounts-t9n' at makeMissingError (modules-runtime.js?hash=b819d45cbf32aff410d

我有一个大气包,它依赖于npm包meteor-accounts-t9n。如果可能,可以使用对等依赖项,并使用
tmeasday:check npm versions
对依赖项进行运行时检查

这对我的主应用程序非常有效,但当我尝试在包上运行测试时,找不到依赖项:

Uncaught Error: Cannot find module 'meteor-accounts-t9n'
at makeMissingError (modules-runtime.js?hash=b819d45cbf32aff410d740fac0364cb4088cd3f2:232)
at Module.require (modules-runtime.js?hash=b819d45cbf32aff410d740fac0364cb4088cd3f2:251)
at Module.moduleLink [as link] (modules.js?hash=655bc49ceeeeb29fd8970000aeef404082790b9b:302)
at at_error.js (at_error.js:1)
....

有没有办法在package.js、其
onTest()
函数或包中的其他地方指定npm对等依赖项?

对于这类包,我总是创建一个最小的Meteor项目,添加包和目标npm包,并编写/运行测试。我还没有找到更简单的方法。谢谢你的解决方法。这也是我能想到的最好的了,尽管我希望公布这个软件包,这会让尴尬加倍。