chai-as-promised extends Chai with assertions for promises, simplifying asynchronous testing. It allows you to directly assert on the fulfillment or rejection of promises, avoiding boilerplate code. Test promise results with clarity using expect(promise).to.eventually.equal('value') or handle rejections with expect(promise).to.be.rejectedWith(Error). This plugin enhances readability and reduces complexity in asynchronous JavaScript tests, making them easier to write and maintain. Improve your tests, reduce headaches, and boost confidence, all with chai-as-promised.
Chai-as-promised releases were frequent in 2012-2013, then slowed significantly. There were occasional releases between 2014 and 2017. After a long pause, a few releases occurred in 2024, including a major version upgrade to 8.0.0. As of August 2025, there have been no releases this year.
Chai-as-promised downloads show a fluctuating trend. From February 2024 to August 2025, downloads generally increased, peaking in June 2025. August 2025 shows a significant drop, but this is likely due to incomplete data for the month as of August 26, 2025.