{"library":"it-each","type":"library","category":null,"description":"it-each is a JavaScript module designed to extend Mocha's testing capabilities by enabling asynchronous test looping. It allows developers to iterate over data sets, executing a test case for each item with configurable titles and data extraction. The package, currently at version 0.5.0, explicitly states it is below v1.0.0 due to an unclear roadmap, implying potential breaking changes, though stability is aimed for. It operates by modifying Mocha's global `it` handler and works with Mocha v2.1.0 and likely newer versions, though no guarantees are made for future compatibility. Key features include automatic adjustment of `timeout` and `slow` values for collective tests, and an option (`testPerIteration`) to generate a separate test entry for each iteration, which helps in isolating failures. Its primary differentiator is its simplicity and direct integration into Mocha's existing `it` interface, making it easy to adapt existing tests for data-driven scenarios.","language":"javascript","status":"maintenance","version":"0.5.0","tags":["javascript","async","mocha","iterable"],"last_verified":"Wed May 27","install":[{"cmd":"npm install it-each","imports":["require('it-each')();\n// it.each is then available globally or via Mocha's `it` context","require('it-each')({ testPerIteration: true });","it.each.skip(iterable, title, fields, process);"]},{"cmd":"yarn add it-each","imports":[]},{"cmd":"pnpm add it-each","imports":[]}],"homepage":null,"github":"https://github.com/whitfin/it.each","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/it-each","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/it-each/compatibility"}}