File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -881,7 +881,7 @@ Mocha.prototype.failZero = function (failZero) {
881
881
* @return {Mocha } this
882
882
* @chainable
883
883
*/
884
- Mocha . prototype . passOnFailingTestSuite = function ( passOnFailingTestSuite ) {
884
+ Mocha . prototype . passOnFailingTestSuite = function ( passOnFailingTestSuite ) {
885
885
this . options . passOnFailingTestSuite = passOnFailingTestSuite === true ;
886
886
return this ;
887
887
} ;
@@ -1229,8 +1229,12 @@ Mocha.prototype._runGlobalFixtures = async function _runGlobalFixtures(
1229
1229
fixtureFns = [ ] ,
1230
1230
context = { }
1231
1231
) {
1232
- for await ( const fixtureFn of fixtureFns ) {
1233
- await fixtureFn . call ( context ) ;
1232
+ for ( const fixtureFn of fixtureFns ) {
1233
+ try {
1234
+ await fixtureFn . call ( context ) ;
1235
+ } catch ( err ) {
1236
+ console . error ( err . stack ) ;
1237
+ }
1234
1238
}
1235
1239
return context ;
1236
1240
} ;
You can’t perform that action at this time.
0 commit comments