Skip to content

Commit

Permalink
add flag in node 10
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 25, 2024
1 parent ff85f4a commit 7982e24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ describe('gulp', function() {

var cli = path.join(__dirname, '../bin/gulp.js');
var opts = { cwd: path.join(__dirname, 'fixtures/gulpfiles/mjs' ) };
cp.exec('node ' + cli, opts, function (err, stdout, stderr) {
var node = 'node ';
if (process.version.startsWith('v10.')) {
node += '--experimental-modules '
}
cp.exec(node + cli, opts, function (err, stdout, stderr) {
expect(err).toBeNull();
expect(stdout).toMatch('gulpfile.mjs');
expect(stderr).toEqual('');
Expand Down

0 comments on commit 7982e24

Please sign in to comment.