chore(ssr): moveout ssr testing files (#6655)

- Move testing files to ssr-testing/
This commit is contained in:
JeremyWuuuuu 2022-03-15 20:18:06 +08:00 committed by GitHub
parent 0d11e22f27
commit 6eb8cfa1ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import type { Browser } from 'puppeteer'
const projectRoot = process.cwd()
const testRoot = `${projectRoot}/ssr-testing`
const demoRoot = path.resolve(projectRoot, 'packages/components')
const demoRoot = path.resolve(projectRoot, 'ssr-testing/cases')
describe('Cypress Button', () => {
let browser: Browser
beforeAll(async () => {
@ -19,7 +19,7 @@ describe('Cypress Button', () => {
describe('when initialized', () => {
const demoPaths = glob
.sync(`${demoRoot}/**/ssr/*.vue`)
.sync(`${demoRoot}/*.vue`)
.map((demo) => demo.slice(demoRoot.length + 1))
it.each(demoPaths)(`render %s correctly`, async (demoPath) => {