diff options
author | 2023-02-09 00:30:40 -0800 | |
---|---|---|
committer | 2023-02-09 00:30:40 -0800 | |
commit | 523b112945d20f7aa59ad3de327348cc77353a1f (patch) | |
tree | 9f5fd5253a797f6391d4dd947d723d77b707eb9b /src/bundler.zig | |
parent | 8aa29040e6d79e80bc7e913bfb457b273dbec1a4 (diff) | |
download | bun-523b112945d20f7aa59ad3de327348cc77353a1f.tar.gz bun-523b112945d20f7aa59ad3de327348cc77353a1f.tar.zst bun-523b112945d20f7aa59ad3de327348cc77353a1f.zip |
[bun:test] Auto-import jest globals in test files
Diffstat (limited to 'src/bundler.zig')
-rw-r--r-- | src/bundler.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bundler.zig b/src/bundler.zig index 336723da3..f540436b0 100644 --- a/src/bundler.zig +++ b/src/bundler.zig @@ -1324,6 +1324,7 @@ pub const Bundler = struct { virtual_source: ?*const logger.Source = null, replace_exports: runtime.Runtime.Features.ReplaceableExport.Map = .{}, hoist_bun_plugin: bool = false, + inject_jest_globals: bool = false, }; pub fn parse( @@ -1453,6 +1454,7 @@ pub const Bundler = struct { opts.features.jsx_optimization_hoist = bundler.options.jsx_optimization_hoist orelse opts.features.jsx_optimization_inline; opts.features.hoist_bun_plugin = this_parse.hoist_bun_plugin; + opts.features.inject_jest_globals = this_parse.inject_jest_globals; if (bundler.macro_context == null) { bundler.macro_context = js_ast.Macro.MacroContext.init(bundler); } |