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 +5 -0
- package/README.md +27 -0
- package/lib/is-only-tests.js +1 -1
- package/lib/is-skip-tests.js +3 -0
- package/lib/supertape.d.ts +1 -0
- package/lib/supertape.js +1 -0
- package/package.json +1 -1
package/ChangeLog
CHANGED
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
|
package/lib/is-only-tests.js
CHANGED
package/lib/supertape.d.ts
CHANGED
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.
|
|
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",
|