From 79b096713cf8ad305b07f1f14b5586349167b42d Mon Sep 17 00:00:00 2001 From: mmisty Date: Fri, 2 Jun 2023 19:16:54 +0800 Subject: [PATCH] done message --- src/parser/parse.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/parser/parse.ts b/src/parser/parse.ts index 0a5ffab..9043a93 100644 --- a/src/parser/parse.ts +++ b/src/parser/parse.ts @@ -7,10 +7,10 @@ const PACK = '[allure-js-parser]'; const glob = require('fast-glob'); // eslint-disable-next-line no-console -const log = (...args: unknown[]) => console.log(`${PACK} `, ...args); +const log = (...args: unknown[]) => console.log(`${PACK}`, ...args); // eslint-disable-next-line no-console -const logError = (...args: unknown[]) => console.error(`${PACK} `, ...args); +const logError = (...args: unknown[]) => console.error(`${PACK}`, ...args); function isResult(obj: Record): obj is AllureTest { return !obj.children && obj.uuid && obj.name; @@ -132,5 +132,8 @@ export const parseAllure = (directoryPath: string, config?: { failOnError?: bool } // got all tests, getting all parents for test - return populateParents(pureTestCases, containers); + const tests = populateParents(pureTestCases, containers); + log('Done'); + + return tests; };