Commit Graph

13 Commits

Author SHA1 Message Date
Tim Griesser d1d337a075 fix: revert "feat: automatically find/merge config for component testing (#21432)" (#21560)
This reverts commit a355ad6159.
2022-05-19 10:50:56 -04:00
Lachlan Miller a355ad6159 feat: automatically find/merge config for component testing (#21432)
* wip: add comment regarding webpack config

* wip: various

* wip

* fix tests

* lint

* fix tests

* add tests

* add tests

* fix tests

* update imports

* make test more reliable

* parse correct flag

* minor refactor

* replace fs-extra with fs

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-05-16 15:03:35 +10:00
Alejandro Estrada c8d86b2cda fix: use prettier to format migrated config (#21227)
* fix: use prettier to format migrated config

* Update with feedback

* fix tests
2022-04-27 12:52:12 -04:00
Tim Griesser 598d94c62a feat: Auto-merge config when adding new testing type (#21152)
* wip on AST merging Cypress Config

* Adding test coverage & better implementation for config merging

* fix types, use new addToCypressConfig for projectId

* refactor: separate export for browser

* printing w/ recast

* don't remove prettier in this PR

* Update packages/config/src/ast-utils/addToCypressConfig.ts

* make comment more robust

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-04-25 18:58:44 -04: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
Blue F 10dfccc674 chore: Move component-index generation to scaffold-config package (#21090)
* chore: Move component-index generation to scaffold-config package

* Review fixes

* Fix review comments for realzies this time
2022-04-20 11:45:40 +10:00
Zachary Williams 17fe5d9599 fix: remove MountReturn from scaffolded ct support file (#21119)
* fix: remove MountReturn from scaffolded ct support file

* fix test
2022-04-19 13:11:41 +10:00
Alejandro Estrada a2b5151e4d fix: do not scaffold fixtures if folder exist (#21078)
* fix: do not scaffold fixtures if folder exist

* Fix tests

* Run windows

* Rever windows run
2022-04-18 14:01:56 -05:00
Lachlan Miller f8621da49d feat(launchpad): update CT setup and config scaffolding (#20893)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-14 12:34:01 -05:00
Jess 0e7b555f93 feat: swap the #__cy_root id selector to become data-cy-root for component mounting (#20951)
* Change #__cy_root selector for CT mounting point to be a data-cy-root selector

* moving all of the gets for the container element into the mount-utils

* Force HTMLElement instead of Element

* unskip vue2 tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-13 16:08:35 -04:00
Lachlan Miller 164543106e chore(launchpad): work on infra for scaffold tests (#20818)
* chore: work on infra for scaffold tests

* revert

* wip

* ignore scaffolded files in linting

* add snapshot for plain TS project

* add more tests

* linting

* add temp-dir dep to data-context

* exclude scaffolded assets from linting

* bump server tsconfig lib to es2019

* bump graphql tsconfig lib

* add missing dependency

* use task to avoid test code leaking into data-context prod

* remove unused code

* remove deps

* make currentProject cross platform with path.posix and path.sep

* posix.join

* use path.posix everywhere

* update types

* correct paths and add ct framework to expected dir

* fix scaffolded files from indexHtmlFile merge

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-04-05 09:42:40 +10:00
Zachary Williams 7f8a810e3d fix(launchpad): scaffold correct config file (#20372) 2022-02-25 17:29:17 -06:00
Jessica Sachs a045e4f59a chore: move server e2e tests to system-tests (#16354)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-10-18 19:53:14 +00:00