mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-08 15:59:46 -05:00
29 lines
868 B
TypeScript
29 lines
868 B
TypeScript
import systemTests from '../lib/system-tests'
|
|
import type { fixtureDirs } from '@tooling/system-tests'
|
|
|
|
type ProjectDirs = typeof fixtureDirs
|
|
|
|
const VITE_REACT: ProjectDirs[number][] = ['vite2.8.6-react', 'vite2.9.1-react', 'vite3.0.2-react', 'vite4.0.4-react']
|
|
|
|
describe('@cypress/vite-dev-server', function () {
|
|
systemTests.setup()
|
|
|
|
describe('react', () => {
|
|
for (const project of VITE_REACT) {
|
|
it(`executes all of the tests for ${project}`, function () {
|
|
return systemTests.exec(this, {
|
|
project,
|
|
configFile: 'cypress-vite.config.ts',
|
|
testingType: 'component',
|
|
browser: 'chrome',
|
|
snapshot: true,
|
|
expectedExitCode: 7,
|
|
onStdout: (stdout) => {
|
|
return stdout.replace(/http:\/\/localhost:\d+/g, 'http://localhost:xxxx')
|
|
},
|
|
})
|
|
})
|
|
}
|
|
})
|
|
})
|