@hughescr/stryker-bun-runner 1.7.1 → 1.7.2

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
@@ -325,7 +325,9 @@ Most projects need no config change, but these differ from 1.4:
325
325
  - **Inspector**: Bun's debugging protocol. The runner uses its test events to see each test start
326
326
  and finish.
327
327
  - **Drain handshake**: at the end of the dry run, the test process waits until the runner confirms
328
- it has received every test event, so none are lost on a busy machine.
328
+ it has received the test events, so none are lost on a busy machine. When the runner cannot
329
+ confirm it, the dry run warns, and it is refused if any test result or any test's coverage could
330
+ be missing or credited to the wrong test; it does not promise that every inspector event arrived.
329
331
  - **Plain run**: a run of your tests that the dry run sometimes makes first, with no mutated file
330
332
  imported before the tests, only to see which mutated files the tests load. Its results are not
331
333
  reported to Stryker ([when it happens](#if-the-dry-run-runs-your-tests-twice)).
@@ -1161,7 +1163,9 @@ also fails; see [Inspector diagnostics](docs/internals.md#inspector-diagnostics)
1161
1163
  [`ignoreStatic`](#ignorestatic-faster-but-skips-module-level-code).
1162
1164
  - **`bun.maxChildRss` is a polled, soft limit**, not a kernel-enforced one.
1163
1165
  - **The dry run's fixed bounds** (the 30 s drain handshake ceiling, the 4 s silence limit) have no
1164
- options.
1166
+ options. With `--isolate`, a test file that has no tests, or in which `.only` leaves some tests
1167
+ out, adds up to 4 s to the dry run, and so does every test file bun runs after it: nothing else
1168
+ can show the runner that it has every test event from those files.
1165
1169
 
1166
1170
  ## Advanced topics
1167
1171
 
package/dist/index.d.ts CHANGED
@@ -145,6 +145,12 @@ export declare class BunTestRunner implements TestRunner {
145
145
  * "Orphan prevention" in docs/internals.md.
146
146
  */
147
147
  private currentAbortController?;
148
+ /**
149
+ * The drain handshake's silence bound (see src/drain-handshake.ts). Not an
150
+ * option: a subclass in tests/00-integration/isolate-integration.test.ts
151
+ * shortens it, to make a real bun child's fallback wait short.
152
+ */
153
+ protected readonly drainSilenceMs: number;
148
154
  constructor(logger: Logger, options: StrykerOptions);
149
155
  /**
150
156
  * Single source of truth for the registry file name.