From 029a1ab6d8d82cf5de34b2d877f0e8b78d9b1269 Mon Sep 17 00:00:00 2001 From: Guten Ye Date: Fri, 1 Nov 2024 11:47:34 +0800 Subject: [PATCH] chore: fix test --- src/cli/report/ReportComponent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/report/ReportComponent.tsx b/src/cli/report/ReportComponent.tsx index d0e4b71..c104f83 100644 --- a/src/cli/report/ReportComponent.tsx +++ b/src/cli/report/ReportComponent.tsx @@ -2,9 +2,10 @@ import chalk from 'chalk' import { createMarkdown } from '#/cli/report' import type { TReport } from '#/types' -const { default: Markdown } = await import('ink-markdown') +const inkMarkdown = await import('ink-markdown') export const ReportComponent = ({ reportData }: Props) => { + const Markdown = inkMarkdown.default const { command, result } = reportData if (result === true && command === 'convert') { return (