You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// gulp-mocha needs filepaths so you can't have any plugins before it
24
24
.pipe(mocha({reporter:'nyan'}));
@@ -97,25 +97,22 @@ Require custom modules before tests are run.
97
97
If your test suite is not exiting it might be because you still have a lingering callback, most often caused by an open database connection. You should close this connection or do the following:
98
98
99
99
```js
100
-
gulp.task('default', function () {
100
+
gulp.task('default', () => {
101
101
returngulp.src('test.js')
102
102
.pipe(mocha())
103
-
.once('error', function () {
103
+
.once('error', () => {
104
104
process.exit(1);
105
105
})
106
-
.once('end', function () {
106
+
.once('end', () => {
107
107
process.exit();
108
108
});
109
109
});
110
110
```
111
111
112
-
### CoffeeScript
113
-
114
-
Add `require('coffee-script/register')` to the top of your `gulpfile.js`.
115
-
116
112
### Babel
117
113
118
-
Add `require('babel/register')` to the top of your `gulpfile.js`.
114
+
Add `require('babel-core/register');` to the top of your `gulpfile.js`. Make sure to read the [Babel docs](https://babeljs.io/docs/usage/require/).
0 commit comments