Rename kotlin-test-nodejs-runner to kotlin-test-js-runner

This commit is contained in:
Ilya Goncharov
2019-09-19 15:04:01 +03:00
parent 10c36ae5c5
commit 31aa4e4738
32 changed files with 20 additions and 20 deletions
+25
View File
@@ -0,0 +1,25 @@
/*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
import {CliArgsParser, getDefaultCliDescription} from "./src/CliArgsParser";
import {getAdapter} from "./src/Adapter";
const kotlin_test = require('kotlin-test');
process.hrtime = require('browser-process-hrtime');
process.exit = (exitCode) => {
throw new Error(`Exit with ${exitCode}`)
};
const processArgs = window.__karma__.config.args;
const cliDescription = getDefaultCliDescription();
cliDescription.freeArgsTitle = null;
const parser = new CliArgsParser(cliDescription);
const untypedArgs = parser.parse(processArgs);
const initialAdapter = kotlin_test.kotlin.test.detectAdapter_8be2vx$();
kotlin_test.setAdapter(getAdapter(initialAdapter, untypedArgs));