-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy pathvite_dev_server_fresh_spec.ts
More file actions
39 lines (32 loc) · 1.15 KB
/
vite_dev_server_fresh_spec.ts
File metadata and controls
39 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import systemTests from '../lib/system-tests'
import type { fixtureDirs } from '@tooling/system-tests'
type ProjectDirs = typeof fixtureDirs
// These versions should reflect the latest versions of each major version of Vite - update as needed
const VITE_REACT: ProjectDirs[number][] = ['vite5.4.18-react', 'vite6.2.5-react', 'vite7.0.0-react']
describe('@cypress/vite-dev-server', function () {
systemTests.setup()
describe('react', () => {
for (const project of VITE_REACT) {
it(`executes all of the specs for ${project}`, function () {
this.retries(10)
return systemTests.exec(this, {
project,
configFile: 'cypress-vite.config.ts',
testingType: 'component',
browser: 'chrome',
snapshot: true,
expectedExitCode: 7,
})
})
systemTests.it(`executes the port.cy.jsx spec for ${project} when port is statically configured`, {
project,
configFile: 'cypress-vite-port.config.ts',
spec: 'src/port.cy.jsx',
testingType: 'component',
browser: 'chrome',
snapshot: true,
expectedExitCode: 0,
})
}
})
})