Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a capybara for Node.js?

Does anyone know whether there is anything similar to capybara for Node.js?

like image 748
khoomeister Avatar asked Sep 29 '11 02:09

khoomeister


People also ask

Is node JS owned by Google?

Google is All About Getting People on the Internet, and Node. js is Part of this Effort | by Node.

Is node JS popular 2020?

Node. js development has become very popular over the last four years and continues to stand the competition in 2022 making startups worldwide choose it over other available options. Being an experienced Node.


2 Answers

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.

like image 169
Michelle Tilley Avatar answered Sep 21 '22 21:09

Michelle Tilley


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!

like image 41
ajbraus Avatar answered Sep 22 '22 21:09

ajbraus