[JS] Implement strategy with adapterTransformer on global object to mutate adapter of kotlin-test

This commit is contained in:
Ilya Goncharov
2021-11-08 20:47:28 +03:00
committed by Space
parent 272081d8cf
commit 7aef45d5cf
4 changed files with 62 additions and 45 deletions
+14 -6
View File
@@ -3,12 +3,20 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
interface Window {
__karma__: {
config: {
args: string[]
},
result: (result: BrowserResult) => void
import {KotlinTestRunner} from "./src/KotlinTestRunner";
declare global {
interface Window {
__karma__: {
config: {
args: string[]
},
result: (result: BrowserResult) => void
}
kotlinTest: {
adapterTransformer: (current: KotlinTestRunner) => KotlinTestRunner
}
}
}