tape-six 1.7.7 → 1.7.9

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
@@ -109,8 +109,7 @@ tape-six/
109
109
  ├── bin/ # CLI utilities: tape6, tape6-server, tape6-node, tape6-bun, tape6-deno, tape6-seq
110
110
  ├── src/ # Source code (test engine, reporters, runners, utilities)
111
111
  ├── web-app/ # Browser test UI application
112
- ├── tests/ # Test files
113
- ├── ts-tests/ # TypeScript test files
112
+ ├── tests/ # Test files (JS + TS)
114
113
  ├── wiki/ # GitHub wiki documentation (submodule)
115
114
  └── vendors/ # Git submodules (deep6)
116
115
  ```
@@ -420,6 +419,8 @@ Test output can be controlled by flags. See [Supported flags](https://github.com
420
419
 
421
420
  The most recent releases:
422
421
 
422
+ - 1.7.9 _Merged test directories, fixed `.d.ts` typings, added `ts-check` to CI._
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/index.d.ts CHANGED
@@ -1130,17 +1130,17 @@ export declare const test: Test;
1130
1130
  /**
1131
1131
  * An alias for `test`. When called inside a test body, it delegates to the current tester.
1132
1132
  */
1133
- export declare const suite = test;
1133
+ export declare const suite: Test;
1134
1134
 
1135
1135
  /**
1136
1136
  * An alias for `test`. When called inside a test body, it delegates to the current tester.
1137
1137
  */
1138
- export declare const describe = test;
1138
+ export declare const describe: Test;
1139
1139
 
1140
1140
  /**
1141
1141
  * An alias for `test`. When called inside a test body, it delegates to the current tester.
1142
1142
  */
1143
- export declare const it = test;
1143
+ export declare const it: Test;
1144
1144
 
1145
1145
  /**
1146
1146
  * Registers a function that will be called before all 1st-level embedded tests in the current scope.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tape-six",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
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",
@@ -35,10 +35,10 @@
35
35
  "test:seq:deno": "deno run -A ./bin/tape6-seq.js --flags FO",
36
36
  "test:puppeteer": "node tests/puppeteer-chrome.js",
37
37
  "test:playwright": "node tests/playwright-chrome.js",
38
- "ts-check": "tsc --noEmit",
39
- "ts-test": "node ./bin/tape6.js --flags FO '/ts-tests/test-*.ts'",
40
- "ts-test:bun": "bun run ./bin/tape6-bun.js --flags FO '/ts-tests/test-*.ts'",
41
- "ts-test:deno": "deno run -A ./bin/tape6-deno.js --flags FO '/ts-tests/test-*.ts'"
38
+ "ts-test": "node ./bin/tape6.js --flags FO 'tests/test-*.*ts'",
39
+ "ts-test:bun": "bun run ./bin/tape6-bun.js --flags FO 'tests/test-*.*ts'",
40
+ "ts-test:deno": "deno run -A ./bin/tape6-deno.js --flags FO 'tests/test-*.*ts'",
41
+ "ts-check": "tsc --noEmit"
42
42
  },
43
43
  "github": "http://github.com/uhop/tape-six",
44
44
  "repository": {
@@ -25,7 +25,7 @@ Write or update tests using the tape-six testing library.
25
25
  - Cover: normal operation, edge cases, error conditions.
26
26
  - Use `t.equal` for primitives, `t.deepEqual` for objects/arrays, `t.throws` for errors, `await t.rejects` for async errors.
27
27
  - All `msg` arguments are optional but recommended for clarity.
28
- // turbo
28
+ // turbo
29
29
  4. Run the new test file directly to verify: `node tests/test-<name>.js`
30
30
  // turbo
31
31
  5. Run the full test suite to check for regressions: `npm test`