Files
cypress/system-tests/test/vite_example_spec.ts
Jess b326693879 chore: cutting over system-tests and Cypress to use the new CT Object API (#21079)
* removing vite-dev-server local dependency from react-vite-ts-configured system test

* moving some CRA examples over to use the object api for setup

* fixing issue where function API was broken by object API for cy config + devservers

* adding deeply nested react import to project-fixtures for cra

* finishes cutting over cypress/react for sys tests

* chore: adding circle for this feature branch

* chore: moving over many vue + vite system tests to use object API instead of function API (#21080)

* doing webpack-dev-server cutovers

* removing more webpack-dev-server refrences

* fixing snapshots

* bumping yarn.lock

* wip

* fix test

* fix assertion

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* feat: removing all references for "fresh" dev servers (webpack-dev-server-fresh and vite-dev-server-fresh) (#21094)

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* chore: add dev-servers as deps to server to be included in the binary (#21091)

* fix bad merge

* fix next types and webpack-dev-server- resolve

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-04-20 15:57:19 +10:00

27 lines
638 B
TypeScript

import systemTests from '../lib/system-tests'
import Fixtures from '../lib/fixtures'
describe('example vite test', function () {
systemTests.setup()
beforeEach(async () => {
await Fixtures.scaffoldProject('e2e')
})
systemTests.it(`should load the support file`, {
project: 'vite-ct-function-api',
testingType: 'component',
spec: 'src/support.cy.ts',
expectedExitCode: 0,
browser: 'electron',
})
systemTests.it(`should load the support file`, {
project: 'vite-ct-object-api',
testingType: 'component',
spec: 'src/support.cy.ts',
expectedExitCode: 0,
browser: 'electron',
})
})