From b4990d1aa233db662cf22d7f872d45b3a947e0f6 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Mon, 22 Jan 2024 10:27:14 +1100 Subject: refactor: don't error when `.env` is not present (#21879) Uses similar format to when the latest version of std is implicitly being used. Closes #21788 --- cli/tests/integration/eval_tests.rs | 5 +---- cli/tests/integration/run_tests.rs | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/eval_tests.rs b/cli/tests/integration/eval_tests.rs index 5d0566a19..1ae65e49e 100644 --- a/cli/tests/integration/eval_tests.rs +++ b/cli/tests/integration/eval_tests.rs @@ -85,8 +85,5 @@ itest!(env_file { itest!(env_file_missing { args: "eval --env=missing console.log(Deno.env.get(\"ANOTHER_FOO\"))", - output_str: Some( - "error: Unable to load 'missing' environment variable file\n" - ), - exit_code: 1, + output: "eval/env_file_missing.out", }); diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 4e3fa8de2..d7d65726e 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -758,10 +758,7 @@ itest!(env_file { itest!(env_file_missing { args: "run --env=missing --allow-env run/env_file.ts", - output_str: Some( - "error: Unable to load 'missing' environment variable file\n" - ), - exit_code: 1, + output: "run/env_file_missing.out", }); itest!(_091_use_define_for_class_fields { -- cgit v1.2.3