diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-26 22:58:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 23:58:28 +0200 |
commit | ba58628601057c6f996cbad287fcfbe353872368 (patch) | |
tree | 5642806d3aed1d46eab233511ef8a929cf0c51d3 /tests/integration/js_unit_tests.rs | |
parent | 631d931973fbb7d2e01e1aeb87a33dd9d63ec38e (diff) |
Reland "test: run unit tests with DENO_FUTURE=1" (#25212)
Reverted in https://github.com/denoland/deno/pull/25060
Diffstat (limited to 'tests/integration/js_unit_tests.rs')
-rw-r--r-- | tests/integration/js_unit_tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/integration/js_unit_tests.rs b/tests/integration/js_unit_tests.rs index cbae4a0b8..bc6c5bdae 100644 --- a/tests/integration/js_unit_tests.rs +++ b/tests/integration/js_unit_tests.rs @@ -117,6 +117,10 @@ util::unit_test_factory!( ); fn js_unit_test(test: String) { + js_unit_test_inner(test, false); +} + +pub fn js_unit_test_inner(test: String, future: bool) { let _g = util::http_server(); let deno = util::deno_cmd() @@ -129,6 +133,12 @@ fn js_unit_test(test: String) { .arg("--location=http://127.0.0.1:4545/") .arg("--no-prompt"); + let deno = if future { + deno.env("DENO_FUTURE", "1") + } else { + deno + }; + // TODO(mmastrac): it would be better to just load a test CA for all tests let deno = if test == "websocket_test" || test == "tls_sni_test" { deno.arg("--unsafely-ignore-certificate-errors") |