Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
chaijs
ava
-
Try refactoring this
I'm using AVA for testing and that detects the module declaration and works just fine running ESM tests.
- Meta Open Source is transferring Jest to the OpenJS Foundation
-
Jest Testing like a Pro - Tips and tricks
We recently switch to Jest framework when writing Unit and Integration tests in our React and Node applications. We used Mocha many years ago and AVA for a few years.
-
Ava and React Testing Library
The other day I needed to test a React hook with Ava, which lead me to try to use React Testing Library, and it took me a few minutes to figure out the best way to do so because the documentation to do so was spread over several pages.
- Nobody at Facebook has worked on Jest for years
-
Chaijs.com just let their domain expire
I really enjoy Ava [1] or anything assert-tape-like [2]. "uvu" [3] is getting a lot of love lately, but it's very feature limited and much of it's touted advantages are at the detriment to feature set.
[1] https://github.com/avajs/ava
[2] https://github.com/substack/tape
[3] https://github.com/lukeed/uvu
Jest is great for front-end (or full stack integration) testing, but I feel it's specialized for that use-case and doesn't always play nice with backend/middle-tier testing needs.
-
Advanced Roadmap for React.js developers
-Jest -React testing library -Enzyme -Sinon -Mocha -Chai -AVA -Tape
-
The React roadmap for beginners you never knew you needed.
AVA
-
What tools do you use for testing?
For unit tests AVA is fast and simple : https://github.com/avajs/ava
-
Some Use-Cases for JS Generator Functions
But this commit broken the unit tests. I use Ava (the only test runner that allows for async tests, so I can write unit tests in my own language) and snapshots for testing the list structure in few unit tests, and somehow the snapshots differ before and after adding iterator to Lists. I still need to investigate why and try to create simple reproduction for this issue on GitHub avajs/ava#2811.
What are some alternatives?
jest - Delightful JavaScript Testing.
tape - tap-producing test harness for node and browsers
mocha - ☕️ simple, flexible, fun javascript test framework for node.js & the browser
tap - Test Anything Protocol tools for node
nightwatch - End-to-end testing framework written in Node.js and using the W3C Webdriver API
vitest - A Vite-native test framework. It's fast!
karma - Spectacular Test Runner for JavaScript
Sinon.JS - Test spies, stubs and mocks for JavaScript.
esbuild - An extremely fast JavaScript and CSS bundler and minifier
jasmine - Simple JavaScript testing framework for browsers and node.js
Cucumber.js - Cucumber for JavaScript
puppeteer - Headless Chrome Node.js API