Christian Stewart
78a4d2ea5a
test(browser): stop gating chromium tests on a top-level-await export
...
`bun test` fails the coding-agent native/unit job with
ReferenceError: Cannot access 'CHROMIUM_AVAILABLE' before initialization
in test/tools/browser-attach.test.ts and browser-tab-evaluate.test.ts,
taking the job red on every pull request.
chromium-probe.ts initializes its only export with top-level await. When
a test file importing it is the first file the runner loads, the await
settles before that file evaluates and the binding reads fine. When any
other test file was loaded first, the importer's body runs while the
binding is still in its temporal dead zone, and registration throws at
the `skipIf` call. `bun test <one file>` passes and `bun test --parallel=1
<any earlier file> <that file>` fails, which is why the job fails while a
single-file run does not.
Export the memoized probe as a function and let each test file await it
during its own evaluation, which the runner sequences. The probe still
runs once per process and resolves the executable exactly as before.
Signed-off-by: Christian Stewart <christian@aperture.us >
2026-08-02 05:00:26 -07:00
..
2026-07-29 23:08:22 +02:00
2026-06-14 07:54:04 +02:00
2026-07-05 16:53:07 +02:00
2026-07-15 18:39:36 +02:00
2026-07-26 11:36:19 +00:00
2026-07-03 11:52:51 +09:00
2026-07-15 15:16:29 +02:00
2026-07-15 19:16:41 +02:00
2026-07-24 22:42:38 +00:00
2026-07-31 19:32:42 +02:00
2026-05-16 07:02:24 +05:30
2026-07-17 05:18:39 +02:00
2026-07-23 22:15:23 +02:00
2026-07-18 20:13:44 +02:00
2026-08-02 05:00:26 -07:00
2026-07-11 05:47:55 +02:00
2026-06-13 17:35:56 +02:00
2026-06-13 17:35:56 +02:00
2026-07-28 06:40:31 +02:00
2026-07-17 03:42:01 +00:00
2026-07-24 16:26:03 +02:00
2026-07-14 17:48:18 +00:00
2026-07-07 15:09:58 -04:00
2026-07-14 17:37:01 +00:00
2026-07-31 19:51:52 +02:00
2026-07-23 19:02:38 +00:00
2026-07-30 05:22:14 +00:00
2026-05-01 18:54:21 +02:00
2026-07-13 00:05:42 +02:00
2026-07-11 07:33:19 +02:00
2026-07-01 23:49:32 +02:00
2026-07-14 18:14:14 +00:00
2026-08-02 05:00:26 -07:00
2026-07-18 20:13:44 +02:00
2026-06-08 19:03:55 +02:00
2026-08-02 05:00:26 -07:00
2026-07-27 22:55:20 +02:00
2026-07-11 17:04:23 +02:00
2026-07-14 18:46:14 +02:00
2026-07-23 01:35:31 +02:00
2026-07-31 00:19:52 +02:00
2026-06-19 07:57:15 +02:00
2026-07-13 09:57:20 -04:00
2026-06-23 00:59:58 +02:00
2026-07-05 16:53:07 +02:00
2026-07-27 16:43:53 +02:00
2026-07-15 03:28:21 +02:00
2026-07-24 16:26:03 +02:00
2026-06-23 00:59:58 +02:00
2026-06-23 00:59:58 +02:00
2026-07-24 21:52:29 +02:00
2026-07-24 21:52:29 +02:00
2026-07-24 16:26:03 +02:00
2026-07-24 16:49:31 +02:00
2026-07-16 03:32:03 +02:00
2026-07-14 17:33:56 +00:00
2026-06-23 15:28:05 -07:00
2026-06-09 04:51:17 +02:00
2026-07-17 22:16:21 +02:00
2026-07-17 07:45:06 +00:00
2026-06-04 00:59:59 +02:00
2026-06-23 15:28:05 -07:00
2026-07-29 23:08:21 +02:00
2026-06-23 15:28:05 -07:00
2026-07-11 05:47:55 +02:00
2026-06-27 02:06:38 +02:00
2026-07-27 16:43:53 +02:00
2026-07-10 15:14:06 +00:00
2026-07-15 15:16:29 +02:00
2026-06-27 00:57:55 +02:00
2026-06-18 21:32:38 -07:00
2026-07-17 15:20:43 +00:00
2026-07-15 15:16:29 +02:00
2026-07-23 20:44:50 +02:00
2026-08-01 20:39:08 +02:00
2026-07-27 04:59:19 +02:00
2026-07-15 15:16:29 +02:00
2026-07-15 15:16:29 +02:00
2026-07-18 14:41:19 +00:00
2026-07-27 16:43:53 +02:00
2026-07-23 00:13:14 +02:00
2026-07-16 13:55:22 +00:00
2026-07-22 16:43:35 +00:00
2026-07-27 01:17:19 +00:00
2026-07-30 17:02:16 +08:00
2026-06-01 18:04:05 +02:00
2026-07-21 13:53:52 -07:00
2026-07-29 23:09:40 +02:00
2026-07-24 15:52:01 +00:00
2026-07-02 08:30:33 +02:00
2026-07-02 17:48:46 +02:00
2026-06-19 04:35:18 +02:00
2026-06-30 06:20:03 +00:00
2026-07-15 22:25:44 +00:00
2026-07-04 15:47:52 +00:00
2026-06-04 01:35:39 +02:00
2026-06-23 15:28:05 -07:00
2026-07-17 17:38:12 +02:00
2026-07-14 18:50:47 +02:00
2026-07-18 22:04:43 +02:00
2026-06-23 15:28:05 -07:00
2026-06-23 15:28:05 -07:00
2026-07-27 23:53:47 +02:00
2026-07-23 18:58:58 +00:00
2026-07-18 22:04:43 +02:00
2026-07-18 22:04:43 +02:00
2026-07-23 17:30:33 +02:00
2026-06-26 16:23:22 +00:00
2026-07-15 19:08:37 +02:00
2026-07-23 13:24:45 +02:00
2026-07-15 15:16:29 +02:00
2026-07-15 15:16:29 +02:00
2026-07-15 15:16:29 +02:00
2026-07-16 04:08:59 +02:00
2026-07-17 07:45:06 +00:00
2026-06-26 20:41:35 +02:00
2026-06-23 15:28:05 -07:00
2026-07-02 17:48:46 +02:00
2026-06-27 02:06:38 +02:00
2026-07-02 08:30:33 +02:00
2026-07-02 08:30:33 +02:00
2026-06-19 04:35:18 +02:00
2026-07-15 18:39:36 +02:00
2026-07-11 19:10:40 +02:00
2026-07-11 13:44:04 +02:00
2026-07-26 09:29:13 -03:00
2026-07-06 08:07:24 +02:00
2026-06-27 02:06:38 +02:00
2026-07-22 15:18:27 +00:00
2026-07-27 16:43:53 +02:00
2026-07-16 03:32:00 +02:00
2026-07-31 20:56:54 +00:00
2026-07-31 19:32:42 +02:00
2026-07-24 16:05:14 +02:00
2026-07-24 16:05:14 +02:00
2026-07-24 16:05:14 +02:00
2026-07-24 16:05:14 +02:00
2026-07-24 16:05:14 +02:00
2026-07-24 16:05:14 +02:00
2026-07-24 16:05:14 +02:00
2026-07-13 00:34:27 +02:00
2026-07-24 16:05:14 +02:00
2026-06-27 05:58:58 +00:00
2026-07-24 16:05:14 +02:00
2026-07-24 16:05:14 +02:00
2026-06-15 13:44:44 +02:00
2026-06-28 07:27:01 +02:00
2026-07-23 00:13:14 +02:00