Compare commits

...

2 Commits

Author SHA1 Message Date
d331f90d24 1.0.56 2021-08-20 18:25:47 +02:00
224400dcb5 fix(core): update 2021-08-20 18:25:47 +02:00
3 changed files with 7 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@gitzone/tstest", "name": "@gitzone/tstest",
"version": "1.0.55", "version": "1.0.56",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@gitzone/tstest", "name": "@gitzone/tstest",
"version": "1.0.55", "version": "1.0.56",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@gitzone/tsbundle": "^1.0.84", "@gitzone/tsbundle": "^1.0.84",

View File

@ -1,6 +1,6 @@
{ {
"name": "@gitzone/tstest", "name": "@gitzone/tstest",
"version": "1.0.55", "version": "1.0.56",
"private": false, "private": false,
"description": "a test utility to run tests that match test/**/*.ts", "description": "a test utility to run tests that match test/**/*.ts",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -1,6 +1,10 @@
import { TsTest } from './tstest.classes.tstest'; import { TsTest } from './tstest.classes.tstest';
export const runCli = async () => { export const runCli = async () => {
if (!process.argv[2]) {
console.error('You must specify a test directory as argument. Please try again.');
process.exit(1);
}
const tsTestInstance = new TsTest(process.cwd(), process.argv[2]); const tsTestInstance = new TsTest(process.cwd(), process.argv[2]);
await tsTestInstance.run(); await tsTestInstance.run();
}; };