Jest und Meteor:使用模板编译器处理文件时出错

Jest und Meteor: Error While processing files with templating-compiler

我有一个具有以下结构的流星对象:

+ .meteor
+ client
- coverage
   - lcov-report
       index.html
       ...
+ imports
+ node_modules
+ private
+ public
+ server
...

我的问题是,如果我尝试启动 meteor App,我会收到以下错误:

=> Started proxy.
=> Errors prevented startup:

   While processing files with templating-compiler (for target web.browser):
   coverage/lcov-report/index.html:2: Can't set DOCTYPE here.  (Meteor sets
   <!DOCTYPE html> for you)

   While processing files with templating-compiler (for target
   web.browser.legacy):
   coverage/lcov-report/index.html:2: Can't set DOCTYPE here.  (Meteor sets
   <!DOCTYPE html> for you)

=> Your application has errors. Waiting for file change.
=> Started MongoDB.

看来跟jest整合有关。你有什么想法,如何解决?我正在使用 MacOS。我已经 chmod 777 覆盖文件夹(和子项)但没有成功。

提前感谢您的宝贵时间和最诚挚的问候, 克里斯蒂安

最后我通过在项目的根目录中创建一个“.meteorignore”文件解决了这个问题。然后我将 'coverage/' 添加到文件中(语法与 .gitignore 相同)。

希望对你也有帮助。

最好的, 克里斯蒂安