From 064ebc5c856eaa5af3c8bc9984e273698cfcba77 Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Mon, 19 Feb 2024 19:00:22 +0200 Subject: [PATCH] fix: descriptionHtml rendering --- src/options/default-options/testCase.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/options/default-options/testCase.ts b/src/options/default-options/testCase.ts index 19d9ff1..6d2bf5b 100644 --- a/src/options/default-options/testCase.ts +++ b/src/options/default-options/testCase.ts @@ -58,7 +58,8 @@ export const testCase: ResolvedTestCaseCustomizer = { const snippet = code ? '```javascript\n' + code + '\n```' : ''; return [text, snippet].filter(Boolean).join('\n\n'); }, - descriptionHtml: () => void 0, + descriptionHtml: ({ testCaseMetadata }) => + testCaseMetadata.descriptionHtml?.join('\n'), start: ({ testCase, testCaseMetadata }) => testCaseMetadata.start ?? (testCaseMetadata.stop ?? Date.now()) - (testCase.duration ?? 0),