Commit Graph

6 Commits

Author SHA1 Message Date
amehta265 5af6b27ed9 fix: CSS import in CT Support file is not working (#24117) 2022-10-07 11:24:54 -05:00
Lachlan Miller 4c647f6d5b feat: allow vite/webpack config to be an async function (#23605)
* vite dev server async fn

* test projects

* update types

* simplify setup

* fix tests

* types

* remove junk file

* update comments

* add more tests

* fix system tests
2022-09-22 14:11:04 +10:00
Lachlan Miller f0d3a48679 feat: React 18 support (#22876)
* update cli exports

* add additional react adapters

* update system test infra to better cover react versions

* use idiomatic cy.mount and cy.unmount

* add additional test projects

* update tests

* add new modules

* remove dead code, organize code more

* add react 16 project

* update webpack to resolve react correctly

* add test for react 16

* update snaps

* add react adapters

* ignore cli/react files

* use official rollup plugin to bundle npm/react

* update yarn lock for webpack dev server tests

* update vite dev server projects

* update config

* remove console.log

* update tsconfig

* fix tests

* fix another test

* update snaps

* update snaps

* fix build

* remove react{16,17}, update tests

* update build

* add missing export

* update test

* fixing tests

* fixing tests

* update snaps

* update snaps again

* build artifacts on circle

* dont try to update rollup plugin

* update circle

* update

* add missing build step

* update deps, remove old code

* revert circle changes

* do not hoist deps from react18

* remove deps
2022-07-22 11:35:09 +10:00
Zachary Williams 868081a976 test: update dev-server types and add tests 2022-06-13 12:06:26 -05:00
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
Tim Griesser 53cc72c4a2 feat: add new vite-dev-server package based on object API & bundling (#20925)
* improve error experience for cy-in-cy

* feat: Adding vite-dev-server-fresh w/ react tests against 2.8.6 & 2.9.1

* add system tests for vite-dev-server-fresh

* cleanup a bit

* Add snapshots

* Update system-tests/project-fixtures/react/cypress-vite.config.ts

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

* add comments

* Update npm/vite-dev-server-fresh/src/devServer.ts

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

* fix: update logLevel for snapshots

* fix logging of vite inspect URL

* add experimentalSessionSupport per @brian-mann suggestion to clear state between tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-04-07 12:48:29 -04:00