summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/eval_tests.rs5
-rw-r--r--cli/tests/integration/run_tests.rs5
-rw-r--r--cli/tests/testdata/eval/env_file_missing.out2
-rw-r--r--cli/tests/testdata/run/env_file_missing.out4
4 files changed, 8 insertions, 8 deletions
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 {
diff --git a/cli/tests/testdata/eval/env_file_missing.out b/cli/tests/testdata/eval/env_file_missing.out
new file mode 100644
index 000000000..221acab93
--- /dev/null
+++ b/cli/tests/testdata/eval/env_file_missing.out
@@ -0,0 +1,2 @@
+Warning The `--env` flag was used, but the dotenv file 'missing' was not found.
+undefined
diff --git a/cli/tests/testdata/run/env_file_missing.out b/cli/tests/testdata/run/env_file_missing.out
new file mode 100644
index 000000000..ae1f8f595
--- /dev/null
+++ b/cli/tests/testdata/run/env_file_missing.out
@@ -0,0 +1,4 @@
+Warning The `--env` flag was used, but the dotenv file 'missing' was not found.
+undefined
+undefined
+undefined