Commit Graph

42 Commits

Author SHA1 Message Date
Zachary Williams feba489a9a fix: normalize vite config resolution (#24369)
BREAKING CHANGE: vite.config.js is no longer merged when devServer.viteConfig is provided
2022-10-26 15:04:53 -05:00
Mike Plummer 3e01474390 feat: Disable file watching in component tests in run mode (#24097) 2022-10-05 13:41:56 -05:00
Colum Ferry 0976034225 fix(webpack-dev-server): handle polyfills array for upcoming angular 15 change (#24064)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-10-03 15:49:13 -05:00
Mike Plummer bf590eba3f feat: CT stack traces (#23916)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-09-26 17:31:46 -05:00
msebas 6a40936604 fix: allow asynchronous vue cli init phase (#23936)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-09-26 16:04:48 -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
Adam Stone 466be9f1f0 fix: force Webpack to emit assets on error (#23844)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Stokes Player <stokes@cypress.io>
2022-09-16 16:43:07 -04:00
Emily Rohrbough 864ab8ebf2 chore: merge master into develop for release (#23803) 2022-09-13 10:49:01 -05:00
Zachary Williams 9e94f561c0 fix tests and types 2022-08-24 17:33:58 -05:00
Zachary Williams c93b652ff7 fix: remove webpack entrypoints from for ct webpack projects (#23299) 2022-08-12 16:38:59 -05:00
Zachary Williams 94e78eba04 feat: enable Angular CT support (#23089) 2022-08-03 17:21:34 -05:00
Zachary Williams ecad07e27b chore: remove angular integration (#23004) 2022-07-29 10:01:01 -05:00
Zachary Williams aedb1e93f9 refactor: improve angular mount log and override build options for dev (#22955) 2022-07-28 10:23:45 -05:00
Jordan 4131b1fa84 feat(angular): angular mount (#22858)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-07-26 17:44:44 -05:00
Jordan dc5d9de290 feat(webpack-dev-server): add angular handler (#22314)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-07-22 13:41:23 -05:00
Zachary Williams 2027f1daee fix: allow next.js apps to import global styles (#22769) 2022-07-21 14:36:50 -05:00
Zachary Williams 7e0de0b0d0 fix: map framework name to dependency that contains webpack (#22774) 2022-07-15 14:36:29 -05:00
Blue F 0fccc45aaf fix: Increase timeout for npm-webpack-dev-server tests (#22489) 2022-06-23 10:51:50 -07:00
Tim Griesser 566a7b1feb fix: UNIFY-1774 error if component config is not sourced for webpack/vite (#21563)
* fix: UNIFY-1774, throw error if we do not detect a webpackConfig for the user

* remove dead code, rely on auto-sourcing webpack config

* fix error styles, exit the devServer process when config is missing, guard against empty remoteState

* Add missing webpack for todos project

* Update npm/webpack-dev-server/src/makeWebpackConfig.ts

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-05-31 14:34:05 -04:00
Ryan Manuel f2bce02f5d fix: issue with compilation failures in component testing (#21599)
* 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
2022-05-25 18:02:05 -05:00
Tyler Biethman 87eec2b460 fix: Ensuring spec file presence prior to webpack-dev-server compilation (#21550)
* fix: Ensuring spec file presence prior to webpack-dev-server compilation

* Clean up test a bit

* Async beforeCompile

* Adding unit test for new behavior

* Moving e2e test to react specs for better project coverage
2022-05-20 12:17:33 +10:00
Zachary Williams 0f786ab893 fix: ct testing support for node 17+ (#21430) 2022-05-13 11:01:30 -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 b0c8db3434 fix: Guard against slow requests in GraphQL Resolution (part 2) (#21020)
* add nexusDeferIfNotLoadedPlugin, remove GraphQLDataSource & ssr of graphql data

* add cachedUser for better rendering when cloudViewer is invalidated, fix types, tests

* guard for login to be visible before making next assertion

* revert onCacheUpdate changes

* fix for percy snapshots

* address @flotwig's simpler feedback

* Address types for versionData

* allow for nullish email in UserAvatar

* Ignore remote schema parent type in onCreateFieldResolver
2022-04-14 12:01:29 -04: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
Zachary Williams 2c8e97df24 refactor: lift indexHtmlFile up to component, add validation (#20870) 2022-04-01 09:45:21 -05:00
Tyler Biethman 21fd2ebe9c Merge branch 'develop' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10.0
# Conflicts:
#	packages/launcher/package.json
2022-03-29 09:46:08 -05:00
Lachlan Miller 1b152fca1b fix(webpack-dev-server): do not encodeUri in loader (#20575)
* fix: do not encodeUri in webpack loader

* add tests

* fix test

* fix: use decodeURI in loader and add tests (#20593)

* add tests for non-unicode and specs with ...

* add more system tests

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-03-15 12:49:45 +10:00
BlueWinds c9bece8c69 Refactor webpack-dev-server, fix event listener leak 2022-03-08 09:50:49 -08:00
Lachlan Miller 76129e26af merge in develop to 10.0-release 2022-03-07 10:44:26 +10:00
Brian Mann e0bd6ac2aa fix: error regression - strip ansi colors out of cy.fixture() error message (#20335)
* fix cy.fixture regression - strip ansi colors out of fixture error message

* empty commit to appease the semantic release gods

* fix 2nd regression formatting when setting invalid config values - remove extra backtick

* increase webpack dev server timeout values
2022-02-28 12:01:54 -05:00
Tyler Biethman 8a9713fc0d Chore: Merge branch 'develop' of https://github.com/cypress-io/cypress into 10.0-release
# Conflicts:
#	npm/vite-dev-server/src/makeCypressPlugin.ts
#	npm/vite-dev-server/src/resolveServerConfig.ts
#	npm/vue/README.md
#	npm/webpack-dev-server/package.json
#	packages/driver/cypress/integration/commands/actions/type_spec.js
#	packages/driver/src/cy/commands/navigation.ts
2022-02-10 12:11:42 -06:00
Zachary Williams f9ce67cfb6 fix: detect newly added specs in dev-server compilation (#17950)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-02-08 17:06:15 -06:00
Tim Griesser e018a14c21 feat: Add typings for new devServer config (#18797) 2021-11-08 11:02:01 -05:00
Barthélémy Ledoux 8f5308f706 feat: normalized signatures webpack & vite servers (#18379) 2021-10-14 17:38:03 -05:00
Zachary Williams 16e4759e01 feat: support webpack-dev-server v4 (#17918)
* feat: migrate to new webpack-dev-server public api

* fix: extract version check, and disallow minor releases matching `/3\./` with a starts with req.

* feat: support webpack-dev-server v4

* fix webpack warning causing overlay and types

* pin test dependency

* fix tests that were using incorrect wewbpack configuration

Co-authored-by: Ollie Relph <ollie@relph.me>
2021-08-30 17:42:17 -04:00
Lachlan Miller c0fc23a052 feat(npm/webpack-dev-server,runner-ct): Normalize webpack errors + general React/TS improvements (#16613)
* feat: normalize webpack errors

* move some files to TS

* add tests

* simplify test

* improve types

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-05-24 17:40:36 -04:00
Lachlan Miller 8e894a0fdb fix(webpack-dev-server): remove output.publicPath from webpack-dev-server (#15839)
* fix: remove publicPath in react-scripts if it is present

* fix: remove publicPath in react-scripts if it is present

* fix: remove publicPath in webpack-dev-server regardless

* fix: add root path

* chore: revert

* fix: remove user base path

* remove unused function

* test: add unit test for make webpack config

* chore: make purpose for fake url more clear

* do not include local filesystem path in snapshot
2021-04-09 08:23:01 -04:00
ElevateBart 2917fe3f68 refactor: properly use the dev server publicPaths 2021-03-22 11:20:05 -05:00
Barthélémy Ledoux 5fd91bde01 chore: deliver npm modules (#15398)
* fix: deliver webpack-dev-server new architecture

* fix: make vite-dev-server work

* fix: deliver react and vite-dev-server

* fix: deliver the vue2 package too

* fix: rollback react changes published to next
2021-03-10 12:40:59 -06:00
Lachlan Miller 2d182902ca chore: update files based on TR review 2021-02-08 16:49:52 +10:00
Brian Mann af26fbebe6 feat: component testing (#14479)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
2021-02-04 15:45:16 -05:00