I'm adding React to an existing codebase, replacing some of our Handlebars components. I was in the middle of finishing up my Jasmine tests, when I uncovered an issue with testing click events in my React components. I started by using a regular old jQuery .trigger(). I learned here that this does not play well with the React component at all and does not fire the event React is waiting for.
Doing some research, I discovered the React Test Utilities addon. After turning it on in config/application.rb, I tested and found the addon to be available. However, all of my javascript files are not loading and returning as 404s.
In config/applcation.rb I've added the line:
module ReactTesting
class Application < Rails::Application
config.react.addons = true
end
end
I find this odd, that all my other Jasmine tests are no longer loading. What is going on here?
Aucun commentaire:
Enregistrer un commentaire