supertape 7.4.1 → 7.6.0

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,21 @@
1
+ 2022.07.09, v7.6.0
2
+
3
+ feature:
4
+ - (package) glob v8.0.3
5
+
6
+
7
+ 2022.06.21, v7.5.1
8
+
9
+ fix:
10
+ - (supertape) extend: return type
11
+
12
+
13
+ 2022.06.21, v7.5.0
14
+
15
+ feature:
16
+ - (supertape) extend: add type
17
+
18
+
1
19
  2022.06.10, v7.4.1
2
20
 
3
21
  fix:
package/lib/cli.js CHANGED
@@ -125,6 +125,7 @@ async function cli({argv, cwd, stdout, isStop}) {
125
125
  if (args.help) {
126
126
  const {help} = await import('./help.js');
127
127
  stdout.write(help());
128
+
128
129
  return OK;
129
130
  }
130
131
 
package/lib/operators.mjs CHANGED
@@ -259,6 +259,7 @@ function run(name, {formatter, count, incCount, incPassed, incFailed}, testState
259
259
  count: count(),
260
260
  message,
261
261
  });
262
+
262
263
  return;
263
264
  }
264
265
 
@@ -10,9 +10,14 @@ type Result = {
10
10
  expected: unknown,
11
11
  actual: unknown,
12
12
  message: string,
13
+ output: string,
13
14
  };
14
15
 
15
- type Test = OperatorStub & {
16
+ type Operator = {
17
+ [index: string]: (...args: any[]) => Result
18
+ };
19
+
20
+ type Test = Operator & OperatorStub & {
16
21
  equal: (result: unknown, expected: unknown, message?: string) => Result;
17
22
  notEqual: (result: unknown, expected: unknown, message?: string) => Result;
18
23
  deepEqual: (result: unknown, expected: unknown, message?: string) => Result;
@@ -41,10 +46,17 @@ declare namespace test {
41
46
 
42
47
  export default test;
43
48
 
49
+ type CustomOperator = {
50
+ [index: string]: (operator: Operator) => (...args: any[]) => Result
51
+ };
52
+
53
+ declare function extend(customOperator: CustomOperator): typeof test;
54
+
44
55
  export {
45
56
  test,
46
57
  Test,
47
58
  stub,
48
59
  Stub,
60
+ extend,
49
61
  };
50
62
 
package/lib/supertape.js CHANGED
@@ -193,13 +193,12 @@ test.extend = (extensions) => {
193
193
  };
194
194
 
195
195
  const loop = once(({emitter, tests}) => {
196
- let runned = false;
197
196
  let previousCount = 0;
198
197
 
199
198
  (function loop() {
200
199
  if (previousCount === tests.length) {
201
- runned = true;
202
200
  emitter.emit('run');
201
+
203
202
  return;
204
203
  }
205
204
 
package/lib/validator.js CHANGED
@@ -32,6 +32,7 @@ const {
32
32
  const findByMessage = (msg, tests) => {
33
33
  const getMessages = once(getMessagesList);
34
34
  const filtered = getMessages(tests).filter(compareMessage(msg));
35
+
35
36
  return filtered;
36
37
  };
37
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "7.4.1",
3
+ "version": "7.6.0",
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",
@@ -52,7 +52,7 @@
52
52
  "cli-progress": "^3.8.2",
53
53
  "deep-equal": "^2.0.3",
54
54
  "fullstore": "^3.0.0",
55
- "glob": "^7.1.6",
55
+ "glob": "^8.0.3",
56
56
  "jest-diff": "^28.1.1",
57
57
  "once": "^1.4.0",
58
58
  "resolve": "^1.17.0",