From 211b3ff244c33908f0e8c633e773a098bfee8eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 29 Feb 2024 11:54:57 +0000 Subject: fix(publish): print a warning when .jsx or .tsx is imported (#22631) This commit adds a warning when .jsx or .tsx is encountered during publishing. This is a stop-gap solution before we fix it proper. --- tests/integration/publish_tests.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/integration') diff --git a/tests/integration/publish_tests.rs b/tests/integration/publish_tests.rs index fafc018f9..745736d65 100644 --- a/tests/integration/publish_tests.rs +++ b/tests/integration/publish_tests.rs @@ -257,6 +257,14 @@ itest!(jsr_jsonc { http_server: true, }); +itest!(unsupported_jsx_tsx { + args: "publish --token 'sadfasdf'", + cwd: Some("publish/unsupported_jsx_tsx"), + output: "publish/unsupported_jsx_tsx/mod.out", + envs: env_vars_for_jsr_npm_tests(), + http_server: true, +}); + #[test] fn ignores_gitignore() { let context = publish_context_builder().build(); -- cgit v1.2.3