简体   繁体   English

从命令行运行茉莉花与es6测试会引发模板错误

[英]Running jasmine from command line raises template error with es6 tests

I am trying to use jasmine-rails to run tests from the command line. 我正在尝试使用jasmine-rails从命令行运行测试。 My tests are written in es6. 我的测试用es6编写。 I have a spec called company_spec.es6 that I can run from the browser. 我有一个名为company_spec.es6的规范,可以从浏览器运行。

Whenever I run rake spec:javascript I get the following error: ActionView::Template::Error: couldn't find file 'models/company_spec.es6' with type 'application/javascript' 每当我运行rake spec:javascript ,都会出现以下错误: ActionView::Template::Error: couldn't find file 'models/company_spec.es6' with type 'application/javascript'

I read through the documentation on the jasmine-rails repo and my jasmine.yml has the following: 我通读了有关jasmine-rails回购的文档,并且jasmine.yml具有以下内容:

spec_files: - '**/*[sS]pec.{js,es6}'

What am I missing? 我想念什么? How can I get my tests running from command line? 如何从命令行运行测试?

切换到jasmine:ci,并且没有任何问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM