Only loads spec files with .js extension
See original GitHub issueI’m using jasmine-rails 0.12.2v with Sprockets and local Phantomjs. This is my jasmine.yml (I’m relying on assets pipeline):
# minimalist jasmine.yml configuration when leveraging asset pipeline
spec_files:
- "**/*[Ss]pec.{js.jsx, js, jsx}"
use_phantom_gem: false
I’ve create a sample file (sample_spec.js.jsx) and when I try to run rake spec:javascripts it always throws:
ActionView::Template::Error: couldn't find file 'sample_spec.js.jsx' with type 'application/javascript'
On my environment, test will only run when using a .js extension for spec files.
Issue Analytics
- State:
- Created 8 years ago
- Comments:37 (10 by maintainers)
Top Results From Across the Web
Provide a way to add the '.js' file extension to the end ... - GitHub
I'm writing in typescript; importing something from a local path in the same project that only contains typescript files. How does appending a...
Read more >How do I get a list of files with specific file extension using ...
Returns an array of filenames excluding '.' and '.. But how do I get a list of files matching a file specification, for...
Read more >JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module syntax.
Read more >ts-node - npm
TypeScript execution environment and REPL for node.js, with source map support. Latest version: 10.9.1, last published: 6 months ago.
Read more >Content Types - ESBuild
This loader is enabled by default for .js , .cjs , and .mjs files. The .cjs extension is used by node for CommonJS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Any updates on this?
I ended up tracking a similar issue to be caused by a Sprockets issuing react-rails https://github.com/reactjs/react-rails/issues/587