aboutsummaryrefslogtreecommitdiff
path: root/src/cli/test_command.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-09 00:30:40 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-09 00:30:40 -0800
commit523b112945d20f7aa59ad3de327348cc77353a1f (patch)
tree9f5fd5253a797f6391d4dd947d723d77b707eb9b /src/cli/test_command.zig
parent8aa29040e6d79e80bc7e913bfb457b273dbec1a4 (diff)
downloadbun-523b112945d20f7aa59ad3de327348cc77353a1f.tar.gz
bun-523b112945d20f7aa59ad3de327348cc77353a1f.tar.zst
bun-523b112945d20f7aa59ad3de327348cc77353a1f.zip
[bun:test] Auto-import jest globals in test files
Diffstat (limited to 'src/cli/test_command.zig')
-rw-r--r--src/cli/test_command.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli/test_command.zig b/src/cli/test_command.zig
index bc8d7d06a..2b0f82bbd 100644
--- a/src/cli/test_command.zig
+++ b/src/cli/test_command.zig
@@ -561,6 +561,7 @@ pub const TestCommand = struct {
Output.prettyErrorln("<r>\n{s}:\n", .{resolution.path_pair.primary.name.filename});
Output.flush();
+ vm.main_hash = @truncate(u32, bun.hash(resolution.path_pair.primary.text));
var promise = try vm.loadEntryPoint(resolution.path_pair.primary.text);
switch (promise.status(vm.global.vm())) {