From 7f07b70b970812e4f769acdee4ee665f52b6e9d4 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 3 Apr 2023 15:33:33 +0100 Subject: [PATCH] test: log rendered html --- test/runtime-compiler.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/runtime-compiler.test.ts b/test/runtime-compiler.test.ts index 6ae9aa5f507..f5b732fc997 100644 --- a/test/runtime-compiler.test.ts +++ b/test/runtime-compiler.test.ts @@ -11,15 +11,17 @@ await setup({ setupTimeout: (isWindows ? 240 : 120) * 1000 }) -describe('test basic config', () => { +describe.only('test basic config', () => { it('expect render page without any error or logs', async () => { await expectNoClientErrors('/') }) - it('test HelloWorld.vue', async () => { + it.only('test HelloWorld.vue', async () => { const html = await $fetch('/') const { page } = await renderPage('/') + console.log({ html }) + expect(html).toContain('
hello, Helloworld.vue here !
') expect(await page.locator('body').innerHTML()).toContain('
hello, Helloworld.vue here !
') })