UNPKG

only-changed-jest-watch-plugin

Version:

Jest watch plugin for running either only the modified test (for TDD), or tests of dependant modules

10 lines (9 loc) 243 B
'use strict'; require('./_iter-define')(Number, 'Number', function (iterated) { this._l = +iterated; this._i = 0; }, function () { var i = this._i++; var done = !(i < this._l); return { done: done, value: done ? undefined : i }; });