tstest/ts/index.ts

11 lines
327 B
TypeScript
Raw Normal View History

2018-08-03 17:18:42 +00:00
import { TsTest } from './tstest.classes.tstest';
2020-06-01 19:58:15 +00:00
export const runCli = async () => {
2021-08-20 16:25:47 +00: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 17:18:42 +00:00
};