summaryrefslogtreecommitdiff
path: root/cli/tests/integration/compile_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration/compile_tests.rs')
-rw-r--r--cli/tests/integration/compile_tests.rs33
1 files changed, 27 insertions, 6 deletions
diff --git a/cli/tests/integration/compile_tests.rs b/cli/tests/integration/compile_tests.rs
index 1d0a36145..df339c369 100644
--- a/cli/tests/integration/compile_tests.rs
+++ b/cli/tests/integration/compile_tests.rs
@@ -798,15 +798,36 @@ testing[WILDCARD]this
r#"{ "dependencies": { "@denotest/esm-basic": "1" } }"#,
);
- let output = context
+ context
.new_command()
.args("compile --output binary main.ts")
- .run();
- output.assert_exit_code(0);
- output.skip_output_check();
+ .run()
+ .assert_exit_code(0)
+ .skip_output_check();
- let output = context.new_command().name(binary_path).run();
- output.assert_matches_text("2\n");
+ context
+ .new_command()
+ .name(&binary_path)
+ .run()
+ .assert_matches_text("2\n");
+
+ // now try with byonm
+ temp_dir.remove_dir_all("node_modules");
+ temp_dir.write("deno.json", r#"{"unstable":["byonm"]}"#);
+ context.run_npm("install");
+
+ context
+ .new_command()
+ .args("compile --output binary main.ts")
+ .run()
+ .assert_exit_code(0)
+ .assert_matches_text("Check file:///[WILDCARD]/main.ts\nCompile file:///[WILDCARD]/main.ts to binary[WILDCARD]\n");
+
+ context
+ .new_command()
+ .name(&binary_path)
+ .run()
+ .assert_matches_text("2\n");
}
#[test]