mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-29 03:09:53 -05:00
f2bce02f5d
* fix: issue with compilation failures in component testing
* add tests
* fix tests
* Refactor tests
* Fix tests
* Refactor tests
* Fix tests
* Fix paths for dependencies in system tests
* Fix tests
* Fix tests
* Fix tests
* Fix tests
* test fix for initial esbuild failures
* Fix tests
* Add back ESLintPlugin
* Add comments around our special esbuild handling logic in vite
* Code cleanup and additional test scenario
* Add config syntax error tests
* Improve tests
* Update comment and remove unused variable
* Remove unneeded hook in webpack dev server
* Disable dev server overlay
* Revert "Remove unneeded hook in webpack dev server"
This reverts commit 98b2f269ae.
* PR comments
* Accidental removal
* Fix dedent
* PR comments
26 lines
697 B
TypeScript
26 lines
697 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']
|
|
|
|
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,
|
|
})
|
|
})
|
|
}
|
|
})
|
|
})
|