diff options
Diffstat (limited to 'cli/tests/integration')
-rw-r--r-- | cli/tests/integration/mod.rs | 5 | ||||
-rw-r--r-- | cli/tests/integration/run_tests.rs | 4 | ||||
-rw-r--r-- | cli/tests/integration/watcher_tests.rs | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/cli/tests/integration/mod.rs b/cli/tests/integration/mod.rs index b04f552e8..8dd50b2f3 100644 --- a/cli/tests/integration/mod.rs +++ b/cli/tests/integration/mod.rs @@ -1100,9 +1100,8 @@ fn basic_auth_tokens() { let stderr_str = std::str::from_utf8(&output.stderr).unwrap().trim(); eprintln!("{}", stderr_str); - assert!(stderr_str.contains( - "Import 'http://127.0.0.1:4554/001_hello.js' failed, not found." - )); + assert!(stderr_str + .contains("Module not found \"http://127.0.0.1:4554/001_hello.js\".")); let output = util::deno_cmd() .current_dir(util::root_path()) diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index d36d0de1b..6e4f45338 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -163,7 +163,7 @@ itest!(_035_cached_only_flag { itest!(_038_checkjs { // checking if JS file is run through TS compiler - args: "run --reload --config 038_checkjs.tsconfig.json 038_checkjs.js", + args: "run --reload --config checkjs.tsconfig.json 038_checkjs.js", exit_code: 1, output: "038_checkjs.js.out", }); @@ -1584,7 +1584,7 @@ itest!(worker_close_in_wasm_reactions { }); itest!(reference_types_error { - args: "run reference_types_error.js", + args: "run --config checkjs.tsconfig.json reference_types_error.js", output: "reference_types_error.js.out", exit_code: 1, }); diff --git a/cli/tests/integration/watcher_tests.rs b/cli/tests/integration/watcher_tests.rs index f0431e301..855538b16 100644 --- a/cli/tests/integration/watcher_tests.rs +++ b/cli/tests/integration/watcher_tests.rs @@ -989,7 +989,7 @@ fn test_watch_module_graph_error_referrer() { assert_contains!(&line1, CLEAR_SCREEN); assert_contains!(&line1, "Process started"); let line2 = stderr_lines.next().unwrap(); - assert_contains!(&line2, "error: Cannot load module"); + assert_contains!(&line2, "error: Module not found"); assert_contains!(&line2, "nonexistent.js"); let line3 = stderr_lines.next().unwrap(); assert_contains!(&line3, " at "); |