Why “gulp-jest” is failing with: “Please run node with the --harmony flag!”?
问题 I get the following error when running gulp test : Error: Please run node with the --harmony flag! Here is my gulp task: var jest = require('gulp-jest'); gulp.task('test', function() { return gulp.src('src/**/__tests__').pipe(jest({ rootDir: 'src', scriptPreprocessor: '../node_modules/6to5-jest', unmockedModulePathPatterns: [ 'react' ] })); }); To reproduce: https://github.com/SEEK-Jobs/react-playground Note that npm test works properly (test is failing as expected), but gulp test fails with