supertape 12.6.4 → 12.7.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.05, v12.7.0
2
+
3
+ feature:
4
+ - 6e64b5a supertape: is-only-tests: add
5
+
1
6
  2026.03.05, v12.6.4
2
7
 
3
8
  fix:
@@ -0,0 +1,3 @@
1
+ import {fullstore} from 'fullstore';
2
+
3
+ export const isOnlyTests = fullstore();
package/lib/run-tests.js CHANGED
@@ -3,6 +3,7 @@ import wraptile from 'wraptile';
3
3
  import {tryToCatch} from 'try-to-catch';
4
4
  import _isDebug from './is-debug.js';
5
5
  import {createValidator} from './validator.js';
6
+ import {isOnlyTests} from './is-only-tests.js';
6
7
 
7
8
  const inc = wraptile((store) => store(store() + 1));
8
9
  const isOnly = ({only}) => only;
@@ -39,7 +40,8 @@ export default async (tests, overrides = {}) => {
39
40
 
40
41
  const onlyTests = tests.filter(isOnly);
41
42
 
42
- if (onlyTests.length)
43
+ if (onlyTests.length) {
44
+ isOnlyTests(true);
43
45
  return await runTests(onlyTests, {
44
46
  formatter,
45
47
  operators,
@@ -47,6 +49,7 @@ export default async (tests, overrides = {}) => {
47
49
  isStop,
48
50
  isDebug,
49
51
  });
52
+ }
50
53
 
51
54
  const notSkippedTests = tests.filter(notSkip);
52
55
  const skipped = tests.filter(isSkip).length;
package/lib/supertape.js CHANGED
@@ -11,6 +11,8 @@ import {getAt, setValidations} from './validator.js';
11
11
  import {createEmitter as _createEmitter} from './emitter.js';
12
12
  import {createFormatter as _createFormatter} from './formatter/index.js';
13
13
 
14
+ export {isOnlyTests} from './is-only-tests.js';
15
+
14
16
  const createOnly = (test) => (message, fn, options) => {
15
17
  return test(message, fn, {
16
18
  ...options,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "12.6.4",
3
+ "version": "12.7.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",