smoke - properly pick suite name

This commit is contained in:
Benjamin Pasero
2022-04-10 10:13:07 +02:00
parent e358a02a35
commit 497a035770

View File

@@ -89,7 +89,7 @@ export function installDiagnosticsHandler(logger: Logger, appFn?: () => Applicat
function installAppBeforeHandler(optionsTransform?: (opts: ApplicationOptions) => ApplicationOptions) {
before(async function () {
const suiteName = this.currentTest?.titlePath()[1] ?? 'unknown';
const suiteName = this.test?.parent?.title ?? 'unknown';
this.app = createApp({
...this.defaultOptions,