[JS] Mute the EXPORTING_JS_NAME_CLASH_ES diagnostic in TS export tests

This diagnostic started to appear after
51c920af01e3d583c552224a529abe1f6e5fcf16.
This commit is contained in:
Sergej Jaskiewicz
2024-01-09 17:56:32 +01:00
committed by Space Team
parent eda30ff704
commit 61e957fc00
5 changed files with 23 additions and 2 deletions
@@ -6,6 +6,12 @@
// SKIP_NODE_JS
// INFER_MAIN_MODULE
// DIAGNOSTICS: -EXPORTING_JS_NAME_CLASH_ES
// ^ This warning only concernes the ES6 mode, but since it's reported during KLIB serialization, the module system is unknown at that
// point. Additionally, the same KLIB can be used for building JS in different module systems. Therefore, the warning is always written,
// regardless of the project's module system.
// MODULE: JS_TESTS
// FILE: file1.kt
@@ -4,6 +4,12 @@
// SKIP_NODE_JS
// INFER_MAIN_MODULE
// DIAGNOSTICS: -EXPORTING_JS_NAME_CLASH_ES
// ^ This warning only concernes the ES6 mode, but since it's reported during KLIB serialization, the module system is unknown at that
// point. Additionally, the same KLIB can be used for building JS in different module systems. Therefore, the warning is always written,
// regardless of the project's module system.
// MODULE: JS_TESTS
// FILE: file1.kt