tape-six-playwright 1.0.2 → 1.0.3

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
@@ -106,6 +106,7 @@ LLM-friendly documentation is available:
106
106
 
107
107
  The most recent releases:
108
108
 
109
+ - 1.0.3 _Replaced `process.exit()` with `process.exitCode` to prevent truncated output._
109
110
  - 1.0.2 _Added `--help`/`-h` and `--version`/`-v` CLI options._
110
111
  - 1.0.1 _Updated dependencies, added `npm run browser` script, improved workflows._
111
112
  - 1.0.0 _The first official release._
@@ -153,7 +153,9 @@ const main = async () => {
153
153
 
154
154
  if (options.optionFlags['--info'] === '') {
155
155
  showInfo(options, []);
156
- process.exit(0);
156
+ await new Promise(r => process.stdout.write('', r));
157
+ process.exitCode = 0;
158
+ return;
157
159
  }
158
160
 
159
161
  const startServer = options.optionFlags['--start-server'] === '';
@@ -227,7 +229,9 @@ const main = async () => {
227
229
 
228
230
  await worker.cleanup();
229
231
 
230
- shutdown(hasFailed ? 1 : 0);
232
+ serverChild?.kill();
233
+ await new Promise(r => process.stdout.write('', r));
234
+ process.exitCode = hasFailed ? 1 : 0;
231
235
  };
232
236
 
233
237
  main().catch(error => console.error('ERROR:', error));
package/llms-full.txt CHANGED
@@ -158,6 +158,8 @@ The `importmap` section is served by `tape6-server` at `/--importmap` and inject
158
158
 
159
159
  `bin/tape6-playwright.js` is the CLI entry point:
160
160
 
161
+ - With `--help`/`-h`: prints usage and all options, then exits.
162
+ - With `--version`/`-v`: prints version, then exits.
161
163
  - With `--self`: prints its own absolute path and exits.
162
164
  - Otherwise: delegates to `bin/tape6-playwright-node.js`.
163
165
 
@@ -206,7 +208,7 @@ iframe tape-six → ProxyReporter → window.parent.__tape6_reporter(id, event)
206
208
 
207
209
  ## Dependencies
208
210
 
209
- - **`tape-six`** — the core test library. Imports: `State.js`, `utils/EventServer.js`, `utils/config.js` (`getOptions`, `initReporter`, `showInfo`), `test.js`, `utils/timer.js`.
211
+ - **`tape-six`** — the core test library. Imports: `State.js`, `utils/EventServer.js`, `utils/config.js` (`getOptions`, `initReporter`, `showInfo`, `printFlagOptions`), `test.js`, `utils/timer.js`.
210
212
  - **`playwright`** — headless browser automation. Bundled Chromium installed via `postinstall`.
211
213
 
212
214
  ## Writing tests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tape-six-playwright",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Playwright-based browser test runner for tape-six. Runs each test file in its own iframe inside headless Chromium. Works with Node, Deno, and Bun.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -60,7 +60,7 @@
60
60
  ],
61
61
  "dependencies": {
62
62
  "playwright": "^1.58.2",
63
- "tape-six": "^1.7.12"
63
+ "tape-six": "^1.7.13"
64
64
  },
65
65
  "tape6": {
66
66
  "browser": [