summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/repl_tests.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs
index c3e7c42d6..a473dc200 100644
--- a/cli/tests/integration/repl_tests.rs
+++ b/cli/tests/integration/repl_tests.rs
@@ -5,6 +5,7 @@ use test_util::assert_contains;
use test_util::assert_ends_with;
use test_util::assert_not_contains;
use util::TempDir;
+use util::TestContext;
use util::TestContextBuilder;
#[test]
@@ -957,3 +958,16 @@ fn package_json_uncached_no_error() {
console.expect("42")
});
}
+
+#[test]
+fn closed_file_pre_load_does_not_occur() {
+ TestContext::default()
+ .new_command()
+ .args_vec(["repl", "-A", "--log-level=debug"])
+ .with_pty(|console| {
+ assert_contains!(
+ console.all_output(),
+ "Skipping document preload for repl.",
+ );
+ });
+}