Add more tests for Bun.spawn lifecycle and address edgecase (#6904)

* FIxup spawn ref / unref

* Fix test failures

* Add test for #3480

* windows

* 🪟

* Skip on linux

* Fix test

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2023-11-05 00:00:19 -07:00
committed by GitHub
parent e954bce301
commit 98f20170a3
16 changed files with 305 additions and 220 deletions

View File

@@ -969,7 +969,7 @@ pub const TestCommand = struct {
const file_end = reporter.jest.files.len;
for (file_start..file_end) |module_id| {
const module = reporter.jest.files.items(.module_scope)[module_id];
const module: *jest.DescribeScope = reporter.jest.files.items(.module_scope)[module_id];
vm.onUnhandledRejectionCtx = null;
vm.onUnhandledRejection = jest.TestRunnerTask.onUnhandledRejection;