From 7ece49f9b1ddb373770393f5724a87af365c4d23 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 17 Oct 2024 21:37:59 +0100 Subject: [PATCH] chore: use `jiti.import` --- packages/ui-templates/test/templates.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-templates/test/templates.spec.ts b/packages/ui-templates/test/templates.spec.ts index 6cc4071c73..abf9a1175f 100644 --- a/packages/ui-templates/test/templates.spec.ts +++ b/packages/ui-templates/test/templates.spec.ts @@ -62,7 +62,7 @@ describe('template', () => { expect(await formatCss(scopedStyle?.[1] || '')).toMatchSnapshot() expect(await formatCss(globalStyle?.[1] || '')).toMatchSnapshot() - const { template } = await jiti(`file://${distDir}/${file}.ts`) as { template: () => string } + const { template } = await jiti.import(`file://${distDir}/${file}.ts`) as { template: () => string } const html = template() const { valid, results } = await (validator as any).validateString(html) expect.soft(valid).toBe(true)