Fix regression with bun test not recursively scanning the directory tree

This commit is contained in:
Jarred Sumner
2023-05-09 14:56:39 -07:00
parent ffd48dc7a7
commit ff1edca9ee
6 changed files with 36 additions and 10 deletions

View File

@@ -729,6 +729,7 @@ pub const VirtualMachine = struct {
existing_bundle: ?*NodeModuleBundle,
_log: ?*logger.Log,
env_loader: ?*DotEnv.Loader,
store_fd: bool,
) !*VirtualMachine {
var log: *logger.Log = undefined;
if (_log) |__log| {
@@ -748,7 +749,6 @@ pub const VirtualMachine = struct {
existing_bundle,
env_loader,
);
var vm = VMHolder.vm.?;
vm.* = VirtualMachine{
@@ -781,6 +781,7 @@ pub const VirtualMachine = struct {
vm.event_loop = &vm.regular_event_loop;
vm.bundler.macro_context = null;
vm.bundler.resolver.store_fd = store_fd;
vm.bundler.resolver.onWakePackageManager = .{
.context = &vm.modules,