Skip to content

Commit

Permalink
Fix support for streams without file contents
Browse files Browse the repository at this point in the history
Fixes #208
  • Loading branch information
sindresorhus committed Apr 19, 2024
1 parent e52eb07 commit c964e10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function gulpMocha(options) {
return gulpPlugin('gulp-mocha', file => {
files.push(file.path);
}, {
supportsAnyType: true,
async * onFinish(stream) { // eslint-disable-line require-yield
const subprocess = execa('mocha', [...files, ...arguments_], {
localDir: __dirname,
Expand Down

0 comments on commit c964e10

Please sign in to comment.