mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +00:00
19 lines
445 B
TypeScript
19 lines
445 B
TypeScript
// @vitest-environment node
|
|
import path from 'path'
|
|
import { E2E_TIMEOUT, setupPuppeteer } from './e2eUtils'
|
|
|
|
describe('basic-ssr', () => {
|
|
const { page, text } = setupPuppeteer()
|
|
|
|
test(
|
|
'should work',
|
|
async () => {
|
|
await page().goto(`file://${path.resolve(__dirname, `basic-ssr.html`)}`)
|
|
expect(await text('#result')).toContain(
|
|
`<div data-server-rendered="true">foo</div>`
|
|
)
|
|
},
|
|
E2E_TIMEOUT
|
|
)
|
|
})
|