tape-six 1.7.7 → 1.7.8

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/README.md CHANGED
@@ -420,6 +420,7 @@ Test output can be controlled by flags. See [Supported flags](https://github.com
420
420
 
421
421
  The most recent releases:
422
422
 
423
+ - 1.7.8 _Bug fix: Deno stdout flush before exit to prevent truncated output._
423
424
  - 1.7.7 _Bug fix: Windows path normalization in `tape6-server`, documented `--flags=FO` option form._
424
425
  - 1.7.6 _Bug fix: `processArgs` alias canonicalization, dead code removal, doc fix._
425
426
  - 1.7.5 _Refactored CLI runners, added `--info` option, renamed `dontCaptureConsole` to `noConsoleCapture`._
package/bin/tape6-deno.js CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env -S deno run --allow-all --ext=js
2
2
 
3
+ import process from 'node:process';
3
4
  import {fileURLToPath} from 'node:url';
4
5
 
5
6
  import {getOptions, initFiles, initReporter, showInfo} from '../src/utils/config.js';
@@ -40,11 +41,13 @@ const main = async () => {
40
41
 
41
42
  if (currentOptions.optionFlags['--info'] === '') {
42
43
  showInfo(currentOptions, files);
44
+ await new Promise(r => process.stdout.write('', r));
43
45
  Deno.exit(0);
44
46
  }
45
47
 
46
48
  if (!files.length) {
47
49
  console.log('No files found.');
50
+ await new Promise(r => process.stdout.write('', r));
48
51
  Deno.exit(1);
49
52
  }
50
53
 
@@ -66,6 +69,7 @@ const main = async () => {
66
69
  fail: hasFailed
67
70
  });
68
71
 
72
+ await new Promise(r => process.stdout.write('', r));
69
73
  Deno.exit(hasFailed ? 1 : 0);
70
74
  };
71
75
 
package/bin/tape6-seq.js CHANGED
@@ -45,11 +45,13 @@ const main = async () => {
45
45
 
46
46
  if (currentOptions.optionFlags['--info'] === '') {
47
47
  showInfo(currentOptions, files);
48
+ await new Promise(r => process.stdout.write('', r));
48
49
  process.exit(0);
49
50
  }
50
51
 
51
52
  if (!files.length) {
52
53
  console.log('No files found.');
54
+ await new Promise(r => process.stdout.write('', r));
53
55
  process.exit(1);
54
56
  }
55
57
 
@@ -71,6 +73,7 @@ const main = async () => {
71
73
  fail: hasFailed
72
74
  });
73
75
 
76
+ await new Promise(r => process.stdout.write('', r));
74
77
  process.exit(hasFailed ? 1 : 0);
75
78
  };
76
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tape-six",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "TAP-based unit test library for Node, Deno, Bun, and browsers. ES modules, TypeScript, zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "index.js",