supertape 12.8.0 → 12.9.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,8 @@
1
+ 2026.03.09, v12.9.0
2
+
3
+ feature:
4
+ - 8b5573d supertape: isSkipTests: add
5
+
1
6
  2026.03.09, v12.8.0
2
7
 
3
8
  feature:
package/README.md CHANGED
@@ -239,6 +239,13 @@ Here is Possible `options` similar to [Environment Variables](#environment-varia
239
239
  - `checkAssertionsCount`;
240
240
  - `timeout`;
241
241
 
242
+ ```js
243
+ test('hello: world', (t) => {
244
+ t.equal('hello', 'world');
245
+ t.end();
246
+ });
247
+ ```
248
+
242
249
  ### test.only(message, fn, options?)
243
250
 
244
251
  Like `test(name, cb)` except if you use `.only` this is the only test case
@@ -273,6 +280,26 @@ test('assertion', (t) => {
273
280
  });
274
281
  ```
275
282
 
283
+ ### `isSkiptTests`
284
+
285
+ When you need to know if there was `only` tests use:
286
+
287
+ ```js
288
+ import {isOnlyTests} from 'supertape';
289
+
290
+ isOnlyTests();
291
+ ```
292
+
293
+ ### `isOnlyTests`
294
+
295
+ When you need to know if there was `skip` tests use:
296
+
297
+ ```js
298
+ import {isSkipTests} from 'supertape';
299
+
300
+ isSkipTests();
301
+ ```
302
+
276
303
  ## Example
277
304
 
278
305
  ```js
@@ -1,3 +1,3 @@
1
1
  import {fullstore} from 'fullstore';
2
2
 
3
- export const isOnlyTests = fullstore();
3
+ export const isOnlyTests = fullstore(false);
@@ -0,0 +1,3 @@
1
+ import {fullstore} from 'fullstore';
2
+
3
+ export const isSkipTests = fullstore(false);
@@ -54,3 +54,4 @@ export type CustomOperator = Record<string, OperatorFactory>;
54
54
  export declare function extend(operators: CustomOperator): TestFunction;
55
55
 
56
56
  export let isOnlyTests: () => boolean;
57
+ export let isSkipTests: () => boolean;
package/lib/supertape.js CHANGED
@@ -12,6 +12,7 @@ import {createEmitter as _createEmitter} from './emitter.js';
12
12
  import {createFormatter as _createFormatter} from './formatter/index.js';
13
13
 
14
14
  export {isOnlyTests} from './is-only-tests.js';
15
+ export {isSkipTests} from './is-skip-tests.js';
15
16
 
16
17
  const createOnly = (test) => (message, fn, options) => {
17
18
  return test(message, fn, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "12.8.0",
3
+ "version": "12.9.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",