diff options
Diffstat (limited to 'cli/tests/integration/repl_tests.rs')
-rw-r--r-- | cli/tests/integration/repl_tests.rs | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ -505,6 +505,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 = <div />;"); + console.expect("undefined"); + }); +} + +#[test] fn type_error() { util::with_pty(&["repl"], |mut console| { console.write_line("console()"); |