0
votes

I am trying to use jasmine-rails to run tests from the command line. My tests are written in es6. I have a spec called company_spec.es6 that I can run from the browser.

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'

I read through the documentation on the jasmine-rails repo and my jasmine.yml has the following:

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

What am I missing? How can I get my tests running from command line?

1
Have you verified that your pathing is right?MBielski
It turned out to be a problem with how I had jasmine rails configured. I switched to jasmine:ci and that works for me.CCC

1 Answers

0
votes

Switched to jasmine:ci and that has worked without any problems.