@haibun/core
Advanced tools
Comparing version 1.37.1 to 1.38.1
@@ -1,2 +0,2 @@ | ||
export declare const currentVersion = "1.37.1"; | ||
export declare const currentVersion = "1.38.1"; | ||
//# sourceMappingURL=currentVersion.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const currentVersion = '1.37.1'; | ||
export const currentVersion = '1.38.1'; | ||
//# sourceMappingURL=currentVersion.js.map |
@@ -49,2 +49,3 @@ import { TAnyFixme, TStepResult, TTag, TVStep } from '../defs.js'; | ||
export type TActionStage = 'endFeature' | 'action' | 'onFailure' | 'nextStep' | 'init' | 'action'; | ||
export type TArtifactEvent = 'summary' | 'summary' | 'request' | 'debug' | 'failure'; | ||
type TBaseArtifactTopic = { | ||
@@ -78,3 +79,3 @@ stage: TActionStage; | ||
export type TArtifact = { | ||
type: 'video' | 'picture' | 'html' | 'json' | 'json/playwright/trace'; | ||
type: 'archive' | 'video' | 'picture' | 'html' | 'json' | 'json/playwright/trace'; | ||
path?: string; | ||
@@ -81,0 +82,0 @@ content?: TAnyFixme; |
@@ -1,3 +0,3 @@ | ||
import { TAnyFixme, TTag } from './defs.js'; | ||
import { ILogger, ILogOutput, TActionStage, TArtifact, TArtifactMessageContext, TArtifactType, TLogArgs, TLogHistory, TLogLevel, TMessageContext, TOutputEnv } from './interfaces/logger.js'; | ||
import { TTag } from './defs.js'; | ||
import { ILogger, ILogOutput, TActionStage, TArtifact, TArtifactEvent, TArtifactMessageContext, TArtifactType, TLogArgs, TLogHistory, TLogLevel, TMessageContext, TOutputEnv } from './interfaces/logger.js'; | ||
export declare const LOGGER_LOG: { | ||
@@ -39,11 +39,2 @@ level: string; | ||
error: (args: TLogArgs, mctx?: TMessageContext) => void; | ||
static logContext({ details, stage, type, path, event, tag, content }: { | ||
details: TAnyFixme; | ||
stage: TActionStage; | ||
type: TArtifactType; | ||
path?: string; | ||
content?: string; | ||
event: string; | ||
tag: TTag; | ||
}): TArtifactMessageContext; | ||
static logArtifact({ type, path, content }: { | ||
@@ -54,4 +45,5 @@ type: TArtifactType; | ||
}): TArtifact; | ||
static getArtifactTopic(artifact: TArtifact, details: any, event: TArtifactEvent, stage: TActionStage, tag: any): TArtifactMessageContext; | ||
} | ||
export {}; | ||
//# sourceMappingURL=Logger.d.ts.map |
@@ -70,9 +70,10 @@ import { descTag, isFirstTag } from './util/index.js'; | ||
error = (args, mctx) => this.out('error', args, mctx); | ||
static logContext({ details, stage, type, path, event, tag, content }) { | ||
return { topic: { ...details, event, stage }, artifact: { type, path, content }, tag }; | ||
} | ||
static logArtifact({ type, path, content }) { | ||
return { type, path, content }; | ||
} | ||
static getArtifactTopic(artifact, details, event, stage, tag) { | ||
const topic = { ...details, event, stage }; | ||
return { artifact, topic, tag }; | ||
} | ||
} | ||
//# sourceMappingURL=Logger.js.map |
@@ -29,5 +29,4 @@ import { STAY, STAY_FAILURE, } from '../lib/defs.js'; | ||
featureResults.push(featureResult); | ||
const shouldClose = ok || !stayOnFailure; | ||
await featureExecutor.endFeature(); // this should be before close | ||
if (shouldClose) { | ||
if (!stayOnFailure) { | ||
await featureExecutor.close(); | ||
@@ -34,0 +33,0 @@ } |
{ | ||
"name": "@haibun/core", | ||
"type": "module", | ||
"version": "1.37.1", | ||
"version": "1.38.1", | ||
"description": "", | ||
@@ -6,0 +6,0 @@ "author": "", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
371167
4617