mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
chore: use jiti.import
This commit is contained in:
parent
2fa7607c43
commit
7ece49f9b1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user