summaryrefslogtreecommitdiff
path: root/tests/integration/publish_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-02-29 11:54:57 +0000
committerGitHub <noreply@github.com>2024-02-29 12:54:57 +0100
commit211b3ff244c33908f0e8c633e773a098bfee8eaf (patch)
treef6d7e773062d4940d6d87db5fcc30c7ad4b5a111 /tests/integration/publish_tests.rs
parent1dad7bec17d1c4780abe944b991435e5c20ab270 (diff)
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.
Diffstat (limited to 'tests/integration/publish_tests.rs')
-rw-r--r--tests/integration/publish_tests.rs8
1 files changed, 8 insertions, 0 deletions
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();