Skip to content

Commit

Permalink
done message
Browse files Browse the repository at this point in the history
  • Loading branch information
mmisty committed Jun 2, 2023
1 parent 58389bf commit 79b0967
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/parser/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>): obj is AllureTest {
return !obj.children && obj.uuid && obj.name;
Expand Down Expand Up @@ -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;
};

0 comments on commit 79b0967

Please sign in to comment.