mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-29 11:32:15 -05:00
6adba462ea
* chore: do not rely on transitive dep. from npm/react * chore: bump to vite 3.0.2 * revert * target es6 * remove unused code * update styles * remove ts-ignore * bump to vite 3.0.3
26 lines
716 B
TypeScript
26 lines
716 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']
|
|
|
|
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: 3,
|
|
})
|
|
})
|
|
}
|
|
})
|
|
})
|