Compare commits

..

4 Commits

Author SHA1 Message Date
5949988293 1.0.57 2021-08-20 18:43:11 +02:00
04f7be07a3 fix(core): update 2021-08-20 18:43:11 +02:00
d331f90d24 1.0.56 2021-08-20 18:25:47 +02:00
224400dcb5 fix(core): update 2021-08-20 18:25:47 +02:00
5 changed files with 13 additions and 5 deletions

View File

@ -33,9 +33,10 @@ auditProductionDependencies:
- npmci npm prepare
- npmci command npm install --production --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org
# - npmci command npm audit --audit-level=high --only=prod --production
- npmci command npm audit --audit-level=high --only=prod --production
tags:
- docker
allow_failure: true
auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci

4
package-lock.json generated
View File

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

View File

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

View File

@ -1,6 +1,10 @@
import { TsTest } from './tstest.classes.tstest';
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]);
await tsTestInstance.run();
};

View File

@ -198,7 +198,10 @@ export class TsTest {
console.error(err);
}
if ((globalThis as any).tapbundleDeferred && (globalThis as any).tapbundleDeferred.promise) {
if (
(globalThis as any).tapbundleDeferred &&
(globalThis as any).tapbundleDeferred.promise
) {
await (globalThis as any).tapbundleDeferred.promise;
} else {
console.log('Error: Could not find tapbundle Deferred');