supertape 10.1.0 → 10.2.1

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 CHANGED
@@ -1,3 +1,16 @@
1
+ 2024.02.28, v10.2.1
2
+
3
+ fix:
4
+ - 9b0bf03 supertape: tap: success (#8)
5
+
6
+ 2024.02.21, v10.2.0
7
+
8
+ feature:
9
+ - 6b6715b @supertape/formatter-time: chalk v5.3.0
10
+ - de5d7ad @supertape/formatter-progress-bar: chalk v5.3.0
11
+ - 833b60b supertape: extend: test, stub
12
+ - eebaf9e @supertape/progress-bar: improve WebStorm support
13
+
1
14
  2024.02.15, v10.1.0
2
15
 
3
16
  feature:
package/bin/formatter.mjs CHANGED
@@ -31,7 +31,7 @@ export const createFormatter = (parentPort) => {
31
31
  });
32
32
 
33
33
  formatter.on('test:success', ({count, message}) => {
34
- parentPort.postMessage(['test:success', {
34
+ parentPort.postMessage(['success', {
35
35
  count,
36
36
  message,
37
37
  }]);
package/lib/supertape.js CHANGED
@@ -4,6 +4,7 @@ const process = require('process');
4
4
  const {EventEmitter} = require('events');
5
5
  const {PassThrough} = require('stream');
6
6
 
7
+ const stub = require('@cloudcmd/stub');
7
8
  const once = require('once');
8
9
 
9
10
  const options = require('../supertape.json');
@@ -215,12 +216,17 @@ const getExtend = (extensions, type) => (message, fn, options) => {
215
216
  });
216
217
  };
217
218
 
218
- test.stub = require('@cloudcmd/stub');
219
+ test.stub = stub;
219
220
  test.test = test;
220
221
 
221
222
  test.extend = (extensions) => {
222
223
  const extendedTest = getExtend(extensions);
223
224
 
225
+ assign(extendedTest, {
226
+ test: extendedTest,
227
+ stub,
228
+ });
229
+
224
230
  extendedTest.only = getExtend(extensions, {
225
231
  only: true,
226
232
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "10.1.0",
3
+ "version": "10.2.1",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape simplest high speed test runner with superpowers",
6
6
  "homepage": "http://github.com/coderaiser/supertape",