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
<palign="center"><b>🔥 Want to strengthen your core JavaScript skills and master ES6?</b><br>I would personally recommend this awesome <ahref="https://ES6.io/friend/AWESOME">ES6 course</a> by Wes Bos. You might also like his <ahref="https://ReactForBeginners.com/friend/AWESOME">React course</a>.</p>
// `gulp-mocha` needs filepaths so you can't have any plugins before it
32
26
.pipe(mocha({reporter:'nyan'}))
@@ -36,15 +30,14 @@ gulp.task('default', () =>
36
30
37
31
## API
38
32
39
-
### mocha([options])
33
+
### mocha(options?)
40
34
41
35
#### options
42
36
43
-
Type: `Object`
37
+
Type: `object`
44
38
45
39
Options are passed directly to the `mocha` binary, so you can use any its [command-line options](http://mochajs.org/#usage) in a camelCased form. Arrays and key/value objects are correctly converted to the comma separated list format Mocha expects. Listed below are some of the more commonly used options:
46
40
47
-
48
41
##### ui
49
42
50
43
Type: `string`<br>
@@ -65,14 +58,14 @@ This option can also be used to utilize third-party reporters. For example, if y
65
58
66
59
##### reporterOptions
67
60
68
-
Type: `Object`<br>
61
+
Type: `object`<br>
69
62
Example: `{reportFilename: 'index.html'}`
70
63
71
64
Reporter specific options.
72
65
73
66
##### globals
74
67
75
-
Type: `Array`
68
+
Type: `string[]`
76
69
77
70
List of accepted global variable names, example `['YUI']`. Accepts wildcards to match multiple global variables, e.g. `['gulp*']` or even `['*']`. See [Mocha globals option](http://mochajs.org/#globals-option).
78
71
@@ -105,7 +98,7 @@ Only run tests matching the given pattern which is internally compiled to a RegE
105
98
106
99
##### require
107
100
108
-
Type: `Array`
101
+
Type: `string[]`
109
102
110
103
Require custom modules before tests are run.
111
104
@@ -124,7 +117,7 @@ Specify a compiler.
124
117
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:
0 commit comments