jasmine / jasmine-gem

Jasmine ruby gem
681 stars 275 forks source link

React assets not found by Jasmine #230

Closed z5h closed 9 years ago

z5h commented 10 years ago

I have react components found in .jsx files as is the convention. They are located and processed by the asset pipeline correctly when a page is viewed within my rails app.

In a Jasmine spec, when I try to load the .js file that would be generated from the .jsx file, I see an error in the console like:

Uncaught Error: Sprockets::FileNotFound: couldn't find file './hello.js'

slackersoft commented 10 years ago

What does your jasmine.yml file look like? The ./ path seems suspicious to me, and we've seen other people getting jsx files working with react-jsx-sprockets see #222

slackersoft commented 9 years ago

We haven't heard anything else from the community on this, so I'm going to close it. If you're still having issues, please either re-open this or open a new issue.