From 53248e9bb3123a1b684f3f9f744bb671dfa53bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 1 Nov 2023 14:42:54 +0100 Subject: fix(repl): support transforming JSX/TSX (#20695) Closes https://github.com/denoland/deno/issues/16771 --------- Co-authored-by: David Sherret Co-authored-by: Marvin Hagemeister --- cli/tests/integration/repl_tests.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index a6524f718..1cdc625b2 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -497,11 +497,10 @@ fn syntax_error() { } #[test] -fn syntax_error_jsx() { - // JSX is not supported in the REPL +fn jsx_errors_without_pragma() { util::with_pty(&["repl"], |mut console| { console.write_line("const element =
;"); - console.expect("Expression expected"); + console.expect("React is not defined"); }); } @@ -897,11 +896,11 @@ fn repl_unit_tests() { console.expect("test1 ... ok ("); console.expect("test2 ... FAILED ("); console.expect(" ERRORS "); - console.expect("test2 => :7:6"); + console.expect("test2 => :6:6"); console.expect("error: Error: some message"); - console.expect(" at :8:9"); + console.expect(" at :7:9"); console.expect(" FAILURES "); - console.expect("test2 => :7:6"); + console.expect("test2 => :6:6"); console.expect("FAILED | 1 passed (1 step) | 1 failed ("); console.expect("undefined"); -- cgit v1.2.3