mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Don't add to host exposed during roc test
This commit is contained in:
parent
b0ab69d41c
commit
44772b8f3d
1 changed files with 5 additions and 1 deletions
|
@ -2405,7 +2405,11 @@ fn update<'a>(
|
|||
Some(ref platform_data) => module_id == platform_data.module_id,
|
||||
};
|
||||
|
||||
if is_host_exposed {
|
||||
let add_to_host_exposed = is_host_exposed &&
|
||||
// During testing, we don't need to expose anything to the host.
|
||||
!matches!(state.exec_mode, ExecutionMode::Test);
|
||||
|
||||
if add_to_host_exposed {
|
||||
state.exposed_to_host.values.extend(
|
||||
solved_module
|
||||
.exposed_vars_by_symbol
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue