From 58d543a480463ed24de77ec155f1d7e87bb7b234 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 1 Nov 2023 19:04:54 -0400 Subject: fix(repl): jsxImportSource was not working (#21049) I made some fixes in deno_ast to make this possible and we forgot to update this. --- cli/tests/integration/repl_tests.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index fe075d37c..c161477d5 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -504,6 +504,23 @@ fn jsx_errors_without_pragma() { }); } +#[test] +fn jsx_import_source() { + let context = TestContextBuilder::default() + .use_temp_cwd() + .use_http_server() + .build(); + context + .new_command() + .args_vec(["repl", "-A"]) + .with_pty(|mut console| { + console.write_line("/** @jsxImportSource http://localhost:4545/jsx */"); + console.expect("undefined"); + console.write_line("const element =
;"); + console.expect("undefined"); + }); +} + #[test] fn type_error() { util::with_pty(&["repl"], |mut console| { -- cgit v1.2.3