[JS Tests] Prepare JS tests for testing backend diagnostics

- Introducing a backend diagnostic handler.
 - Moving JS diagnostic tests from test-common to
   js.test to avoid circular module dependencies.

^KT-61886 Fixed
This commit is contained in:
Alexander Korepanov
2023-09-12 17:00:40 +02:00
committed by Space Team
parent b672ba8eaf
commit be4f6beddb
19 changed files with 236 additions and 198 deletions
@@ -99,6 +99,6 @@ class FirWasmKlibBackendFacade(
testServices.moduleDescriptorProvider.replaceModuleDescriptorForModule(module, moduleDescriptor)
testServices.libraryProvider.setDescriptorAndLibraryByName(outputFile, moduleDescriptor, lib)
return BinaryArtifacts.KLib(File(outputFile))
return BinaryArtifacts.KLib(File(outputFile), inputArtifact.diagnosticReporter)
}
}