Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
test: log rendered html
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 3, 2023
1 parent dfb05c1 commit 7f07b70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/runtime-compiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('<div id="hello-world">hello, Helloworld.vue here ! </div>')
expect(await page.locator('body').innerHTML()).toContain('<div id="hello-world">hello, Helloworld.vue here ! </div>')
})
Expand Down

0 comments on commit 7f07b70

Please sign in to comment.