summaryrefslogtreecommitdiff
path: root/cli/tests/integration/repl_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-11-01 14:42:54 +0100
committerGitHub <noreply@github.com>2023-11-01 14:42:54 +0100
commit53248e9bb3123a1b684f3f9f744bb671dfa53bc1 (patch)
treef3b928530ef1ea02488ac19c5239809955551bec /cli/tests/integration/repl_tests.rs
parentf1df22ce0ad495264497a4a1b17b5236225bd64c (diff)
fix(repl): support transforming JSX/TSX (#20695)
Closes https://github.com/denoland/deno/issues/16771 --------- Co-authored-by: David Sherret <dsherret@gmail.com> Co-authored-by: Marvin Hagemeister <marvin@deno.com>
Diffstat (limited to 'cli/tests/integration/repl_tests.rs')
-rw-r--r--cli/tests/integration/repl_tests.rs11
1 files changed, 5 insertions, 6 deletions
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 = <div />;");
- 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 => <anonymous>:7:6");
+ console.expect("test2 => <anonymous>:6:6");
console.expect("error: Error: some message");
- console.expect(" at <anonymous>:8:9");
+ console.expect(" at <anonymous>:7:9");
console.expect(" FAILURES ");
- console.expect("test2 => <anonymous>:7:6");
+ console.expect("test2 => <anonymous>:6:6");
console.expect("FAILED | 1 passed (1 step) | 1 failed (");
console.expect("undefined");