Ich analysiere die VS-Code-Tests.Was macht .once (string, function)?
'use strict';
const gulp = require('gulp');
const mocha = require('gulp-mocha');
gulp.task('test', function() {
return gulp.src('test/all.js')
.pipe(mocha({ ui: 'tdd', delay: true }))
.once('end', function() { process.exit(); });
});
Ich habe keine Unterlagen für once(string, function)
gefunden. Was tut es? Wo sind die Dokumente?
Having searched the gulp source enthüllt die Verwendung von, aber nicht die Definition von einmal.