Is there a capybara for Node.js?
How about Zombie?
Zombie.js
Insanely fast, headless full-stack testing using Node.js
The Bite
If you're going to write an insanely fast, headless browser, how can you not call it Zombie Zombie it is.
Zombie.js is a lightweight framework for testing client-side JavaScript code in a simulated environment. No browser required.
I'm a rails-turned-node developer and I've always been looking for a analogy in the JS world for the winning RSpec/Capybara combination. Here is what I've found what I like best.
- Mocha - for running asynchronous tests
- Chai - for assertions
- Request - for handling HTTP request/response
- Cheerio - for selecting HTML elements from responses
Here is a more involved post on how to set up this stack including continuous test running.
Happy Testing!