chai-iterator is a Chai plugin that adds assertions for testing JavaScript iterators and iterables. It provides convenient methods for verifying the values yielded by an iterator and ensuring its completion. Specifically, it allows you to assert that an iterator is done, not done, and yields a specific sequence of values. This simplifies testing asynchronous and synchronous iterators, enhancing code quality and reliability. Ideal for projects leveraging JavaScript's iteration protocols.
Chai-iterator's release frequency shows an initial burst of activity in June 2016 (7 versions), followed by sporadic releases. There were two versions released in March 2017, one in September 2018, and another in February 2019. Since then, there hasn't been a new version released for over six and half years, with the last release being version 3.0.2 in February 2019.
Chai-iterator downloads show fluctuating interest. Downloads increased significantly from April 2024 to May 2025, peaking in June and July 2025. August remained high, while September 2025 downloads are currently trending lower, although the month isn't complete.