1

I'm building my app using backbone and react inside of a rails app. I saw that all the recommended test packages (jest, jasmine, etc) are all node based. From what I know, I can get node on my rails project but I'd prefer not to.

Is there a way to test with something like jest without node? Or is there another package that isn't based on node that works with react.

1 Answer 1

1

Many test frameworks have browser based test runners, if you're willing to give up command line based testing then you can do this. Jasmine and Mocha both allow this.

Node.js is the de facto platform for web development tools (Ruby being the second most popular). Consider adopting the dependency, or you'll be fighting an uphill battle.

Sign up to request clarification or add additional context in comments.

2 Comments

Great thanks. I was slowly coming to that conclusion, but didn't want to accept it.
It took me a while to accept ruby as a dependency, but I have a few tools that require it. I understand :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.