Based on @btford's grunt-ddescribe-iit, with a gulp and ANSI color makeover. Consider using gulp-acorn-ddescribe-iit to minimize false positives. If submitting patches, please submit patches to both projects, or at least file a bug to make sure they maintain feature parity.
This is super important, I'm glad you asked. I spent a good few minutes trying to make it look decent.
var ddescribeIit = require('gulp-ddescribe-iit');
// I mean, that's basically it --- there isn't much to it.
gulp.task('ddescribe-iit', function(done) {
return gulp.src(['modules/**/*.spec.ts', 'modules/**/*_spec.ts']).
pipe(ddescribeIit({ allowDisabledTests: false }));
});
Option | Description |
---|---|
allowDisabledTests |
If set to a defined falsy value, will report errors when xit or xdescribe are used. Defaults to true |
noColor |
Defaults to false --- If true, disables color output. |
basePath |
Defaults to current working directory --- Used to determine relative path of file. If falsy, uses unmodified path. |
tabWidth |
Defaults to 4 --- Must be a number not less than 2 or greater than 8. |
MIT License --- See LICENSE for details.