jasmine-slow-reporter
Version:
Reporter for Jasmine to report on slow specs.
13 lines (10 loc) • 341 B
JavaScript
/* eslint-disable no-underscore-dangle */
const findSpecFile = require('./find-spec-file');
function itFactory(it) {
return function jasmineSlowReporterIt(description, fn, timeout) {
const spec = it(description, fn, timeout);
spec.result._jasmineSlowReporter = findSpecFile();
return spec;
};
}
module.exports = itFactory;