From c5b60a16bbbc067b9042ceaf9c58a84abf5aaba1 Mon Sep 17 00:00:00 2001 From: Artem Kobzar Date: Thu, 20 Apr 2023 16:13:40 +0000 Subject: [PATCH] [K/JS TESTS] Remove .ts files genereting from `generateTests` command to enable Gradle execution optimizations Warning Context: > Task :js:js.tests:generate-ts-for-regular-classes-in-exported-file Execution optimizations have been disabled for task ':js:js.tests:generate-ts-for-regular-classes-in-exported-file' to ensure correctness due to the following reasons: - Gradle detected a problem with the following location: './js/js.translator/testData/typescript-export/regular-classes-in-exported-file'. Reason: Task ':js:js.tests:generate-ts-for-regular-classes-in-exported-file' uses this output of task ':js:js.tests:generate-js-export-on-file-for-regular-classes' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.6.1/userguide/validation_problems.html#implicit_dependency for more details about this problem. > generateTypeScriptTests > tsc --build ./typescript-export/regular-classes-in-exported-file/tsconfig.json --- js/js.tests/build.gradle.kts | 1 - 1 file changed, 1 deletion(-) diff --git a/js/js.tests/build.gradle.kts b/js/js.tests/build.gradle.kts index 51c6f93e86d..ff6949bf981 100644 --- a/js/js.tests/build.gradle.kts +++ b/js/js.tests/build.gradle.kts @@ -192,7 +192,6 @@ val generateTypeScriptJsExportOnFileTests = sequential( !it.path.endsWith(exportFileDirPostfix) } .map { generateJsExportOnFileTestFor(it.name) } - .plus(generateTypeScriptTests) ) fun Test.setupNodeJs() {