mocha 8.3.1 → 8.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # 8.3.2 / 2021-03-12
2
+
3
+ ## :bug: Fixes
4
+
5
+ - [#4599](https://github.com/mochajs/mocha/issues/4599): Fix regression in `require` interface ([**@alexander-fenster**](https://github.com/alexander-fenster))
6
+
7
+ ## :book: Documentation
8
+
9
+ - [#4601](https://github.com/mochajs/mocha/issues/4601): Add build to GH actions run ([**@christian-bromann**](https://github.com/christian-bromann))
10
+ - [#4596](https://github.com/mochajs/mocha/issues/4596): Filter active sponsors/backers ([**@juergba**](https://github.com/juergba))
11
+ - [#4225](https://github.com/mochajs/mocha/issues/4225): Update config file examples ([**@pkuczynski**](https://github.com/pkuczynski))
12
+
1
13
  # 8.3.1 / 2021-03-06
2
14
 
3
15
  ## :bug: Fixes
package/lib/mocha.js CHANGED
@@ -98,37 +98,46 @@ exports.Test = require('./test');
98
98
 
99
99
  let currentContext;
100
100
  exports.afterEach = function(...args) {
101
- (currentContext.afterEach || currentContext.teardown).apply(this, args);
101
+ return (currentContext.afterEach || currentContext.teardown).apply(
102
+ this,
103
+ args
104
+ );
102
105
  };
103
106
  exports.after = function(...args) {
104
- (currentContext.after || currentContext.suiteTeardown).apply(this, args);
107
+ return (currentContext.after || currentContext.suiteTeardown).apply(
108
+ this,
109
+ args
110
+ );
105
111
  };
106
112
  exports.beforeEach = function(...args) {
107
- (currentContext.beforeEach || currentContext.setup).apply(this, args);
113
+ return (currentContext.beforeEach || currentContext.setup).apply(this, args);
108
114
  };
109
115
  exports.before = function(...args) {
110
- (currentContext.before || currentContext.suiteSetup).apply(this, args);
116
+ return (currentContext.before || currentContext.suiteSetup).apply(this, args);
111
117
  };
112
118
  exports.describe = function(...args) {
113
- (currentContext.describe || currentContext.suite).apply(this, args);
119
+ return (currentContext.describe || currentContext.suite).apply(this, args);
114
120
  };
115
121
  exports.describe.only = function(...args) {
116
- (currentContext.describe || currentContext.suite).only.apply(this, args);
122
+ return (currentContext.describe || currentContext.suite).only.apply(
123
+ this,
124
+ args
125
+ );
117
126
  };
118
127
  exports.describe.skip = function(...args) {
119
- (currentContext.describe || currentContext.suite).skip.apply(this, args);
128
+ return (currentContext.describe || currentContext.suite).skip.apply(
129
+ this,
130
+ args
131
+ );
120
132
  };
121
133
  exports.it = function(...args) {
122
- (currentContext.it || currentContext.test).apply(this, args);
134
+ return (currentContext.it || currentContext.test).apply(this, args);
123
135
  };
124
136
  exports.it.only = function(...args) {
125
- (currentContext.it || currentContext.test).only.apply(this, args);
137
+ return (currentContext.it || currentContext.test).only.apply(this, args);
126
138
  };
127
139
  exports.it.skip = function(...args) {
128
- (
129
- currentContext.xit ||
130
- (currentContext.test && currentContext.test.skip)
131
- ).apply(this, args);
140
+ return (currentContext.it || currentContext.test).skip.apply(this, args);
132
141
  };
133
142
  exports.xdescribe = exports.describe.skip;
134
143
  exports.xit = exports.it.skip;
@@ -139,7 +148,7 @@ exports.suite = exports.describe;
139
148
  exports.teardown = exports.afterEach;
140
149
  exports.test = exports.it;
141
150
  exports.run = function(...args) {
142
- currentContext.run.apply(this, args);
151
+ return currentContext.run.apply(this, args);
143
152
  };
144
153
 
145
154
  /**
package/mocha.js CHANGED
@@ -27190,7 +27190,7 @@
27190
27190
  });
27191
27191
 
27192
27192
  var name = "mocha";
27193
- var version$2 = "8.3.1";
27193
+ var version$2 = "8.3.2";
27194
27194
  var homepage = "https://mochajs.org/";
27195
27195
  var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
27196
27196
  var _package = {
@@ -28383,7 +28383,7 @@
28383
28383
  args[_key] = arguments[_key];
28384
28384
  }
28385
28385
 
28386
- (currentContext.afterEach || currentContext.teardown).apply(this, args);
28386
+ return (currentContext.afterEach || currentContext.teardown).apply(this, args);
28387
28387
  };
28388
28388
 
28389
28389
  exports.after = function () {
@@ -28391,7 +28391,7 @@
28391
28391
  args[_key2] = arguments[_key2];
28392
28392
  }
28393
28393
 
28394
- (currentContext.after || currentContext.suiteTeardown).apply(this, args);
28394
+ return (currentContext.after || currentContext.suiteTeardown).apply(this, args);
28395
28395
  };
28396
28396
 
28397
28397
  exports.beforeEach = function () {
@@ -28399,7 +28399,7 @@
28399
28399
  args[_key3] = arguments[_key3];
28400
28400
  }
28401
28401
 
28402
- (currentContext.beforeEach || currentContext.setup).apply(this, args);
28402
+ return (currentContext.beforeEach || currentContext.setup).apply(this, args);
28403
28403
  };
28404
28404
 
28405
28405
  exports.before = function () {
@@ -28407,7 +28407,7 @@
28407
28407
  args[_key4] = arguments[_key4];
28408
28408
  }
28409
28409
 
28410
- (currentContext.before || currentContext.suiteSetup).apply(this, args);
28410
+ return (currentContext.before || currentContext.suiteSetup).apply(this, args);
28411
28411
  };
28412
28412
 
28413
28413
  exports.describe = function () {
@@ -28415,7 +28415,7 @@
28415
28415
  args[_key5] = arguments[_key5];
28416
28416
  }
28417
28417
 
28418
- (currentContext.describe || currentContext.suite).apply(this, args);
28418
+ return (currentContext.describe || currentContext.suite).apply(this, args);
28419
28419
  };
28420
28420
 
28421
28421
  exports.describe.only = function () {
@@ -28423,7 +28423,7 @@
28423
28423
  args[_key6] = arguments[_key6];
28424
28424
  }
28425
28425
 
28426
- (currentContext.describe || currentContext.suite).only.apply(this, args);
28426
+ return (currentContext.describe || currentContext.suite).only.apply(this, args);
28427
28427
  };
28428
28428
 
28429
28429
  exports.describe.skip = function () {
@@ -28431,7 +28431,7 @@
28431
28431
  args[_key7] = arguments[_key7];
28432
28432
  }
28433
28433
 
28434
- (currentContext.describe || currentContext.suite).skip.apply(this, args);
28434
+ return (currentContext.describe || currentContext.suite).skip.apply(this, args);
28435
28435
  };
28436
28436
 
28437
28437
  exports.it = function () {
@@ -28439,7 +28439,7 @@
28439
28439
  args[_key8] = arguments[_key8];
28440
28440
  }
28441
28441
 
28442
- (currentContext.it || currentContext.test).apply(this, args);
28442
+ return (currentContext.it || currentContext.test).apply(this, args);
28443
28443
  };
28444
28444
 
28445
28445
  exports.it.only = function () {
@@ -28447,7 +28447,7 @@
28447
28447
  args[_key9] = arguments[_key9];
28448
28448
  }
28449
28449
 
28450
- (currentContext.it || currentContext.test).only.apply(this, args);
28450
+ return (currentContext.it || currentContext.test).only.apply(this, args);
28451
28451
  };
28452
28452
 
28453
28453
  exports.it.skip = function () {
@@ -28455,7 +28455,7 @@
28455
28455
  args[_key10] = arguments[_key10];
28456
28456
  }
28457
28457
 
28458
- (currentContext.xit || currentContext.test && currentContext.test.skip).apply(this, args);
28458
+ return (currentContext.it || currentContext.test).skip.apply(this, args);
28459
28459
  };
28460
28460
 
28461
28461
  exports.xdescribe = exports.describe.skip;
@@ -28472,7 +28472,7 @@
28472
28472
  args[_key11] = arguments[_key11];
28473
28473
  }
28474
28474
 
28475
- currentContext.run.apply(this, args);
28475
+ return currentContext.run.apply(this, args);
28476
28476
  };
28477
28477
  /**
28478
28478
  * Constructs a new Mocha instance with `options`.