tstest/ts/index.ts

11 lines
330 B
TypeScript
Raw Normal View History

2022-03-13 00:30:32 +01:00
import { TsTest } from './tstest.classes.tstest.js';
2018-08-03 19:18:42 +02:00
2020-06-01 19:58:15 +00:00
export const runCli = async () => {
2021-08-20 18:25:47 +02:00
if (!process.argv[2]) {
console.error('You must specify a test directory as argument. Please try again.');
process.exit(1);
}
2020-06-01 19:58:15 +00:00
const tsTestInstance = new TsTest(process.cwd(), process.argv[2]);
await tsTestInstance.run();
2018-08-03 19:18:42 +02:00
};