summaryrefslogtreecommitdiff
path: root/tests/integration/run_tests.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-02-15 10:20:17 +0530
committerGitHub <noreply@github.com>2024-02-15 04:50:17 +0000
commitb72f0be27c382f2d4e5d272ce9ed2211af584d80 (patch)
tree6b896e59f63cbe0f49d47f58832d5c3440e6ef03 /tests/integration/run_tests.rs
parent1ad754b4123009e01dbecb3b880e7f0545e46c2f (diff)
chore: add DENO_FUTURE env var (#22318)
Closes https://github.com/denoland/deno/issues/22315 ``` ~> DENO_FUTURE=1 target/debug/deno > globalThis.window undefined ```
Diffstat (limited to 'tests/integration/run_tests.rs')
-rw-r--r--tests/integration/run_tests.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs
index c9508594c..6f108f739 100644
--- a/tests/integration/run_tests.rs
+++ b/tests/integration/run_tests.rs
@@ -1711,6 +1711,16 @@ fn type_directives_js_main() {
assert_not_contains!(output.combined_output(), "type_reference.d.ts");
}
+#[test]
+fn test_deno_futures_env() {
+ let context = TestContextBuilder::new().add_future_env_vars().build();
+ let output = context
+ .new_command()
+ .args("run --quiet --reload run/deno_futures_env.ts")
+ .run();
+ output.assert_exit_code(0);
+}
+
itest!(type_directives_redirect {
args: "run --reload --check run/type_directives_redirect.ts",
output: "run/type_directives_redirect.ts.out",