You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vitepress/__tests__/e2e/static-data/data.test.ts

13 lines
324 B

describe('static data file support in vite 3', () => {
beforeAll(async () => {
await goto('/static-data/data')
})
test('render correct content', async () => {
const pLocator = page.locator('.VPContent p')
const pContents = await pLocator.allTextContents()
expect(pContents).toMatchSnapshot()
})
})