Commit Graph

148 Commits

Author SHA1 Message Date
Zachary Williams 94e78eba04 feat: enable Angular CT support (#23089) 2022-08-03 17:21:34 -05:00
mjhenkes 4d3ad9edaa Merge branch 'master' into develop 2022-08-01 08:35:58 -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
Dominik Lesch b4ae71c1c1 fix: wrong version of webpack-dev-server displayed (#22919) 2022-07-25 17:01:54 -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
Chris Breiding 9ef6053264 Merge branch 'master' into develop 2022-07-19 13:18:01 -04:00
Chris Breiding 83c592d873 Revert "chore: merge develop into master v10.3.0 (#22567)"
This reverts commit 43c5477c6b.
2022-07-19 13:13:33 -04:00
Zachary Williams 7e0de0b0d0 fix: map framework name to dependency that contains webpack (#22774) 2022-07-15 14:36:29 -05:00
Zachary Williams 040b0544f5 chore: update ct-related READMEs and changelogs (#22538)
Co-authored-by: Blue F <blue@cypress.io>
2022-06-28 16:45:31 -05:00
Emily Rohrbough 43c5477c6b chore: merge develop into master v10.3.0 (#22567)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Sam Tsai <samtsai@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Muaz Othman <muazweb@gmail.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: Peter Stakoun <peter@stakoun.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Kukhyeon Heo <sainthkh@naver.com>
Co-authored-by: Ishan Madhusanka <ahtimadhusanka@gmail.com>
Co-authored-by: Blue F <blue@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ely Lucas <ely@meta-tek.net>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
Co-authored-by: Adam Stone <adams@cypress.io>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Dylan Schlabach <26153156+DJSdev@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-28 13:26:37 -05:00
Blue F 0fccc45aaf fix: Increase timeout for npm-webpack-dev-server tests (#22489) 2022-06-23 10:51:50 -07:00
Tyler Biethman b925dce224 Merge pull request #22424 from cypress-io/master
Merging master into develop for 10.2.0 release
2022-06-21 11:03:14 -05:00
Zach Bloomquist d01932bf75 fix: retry on EMFILE always, lint sync FS calls (#22175)
* fix: use graceful-fs always, warn in development on sync calls

* skip prop linting in some dirs

* eslint rules

* use AST-based lint rule instead

* comment

* ignore existsSync

* run without nextTick

* remove dev warning code

* fix order

* register TS first

* fix tests

* fix test

* cover new call site

* fix new test
2022-06-16 14:35:31 +10:00
semantic-release-bot 1e42ba3c33 chore: release @cypress/webpack-dev-server-v2.0.0
[skip ci]
2022-06-13 19:23:56 -04:00
Zachary Williams 9cfec9750f fix: add package.json metadata for webpack-dev-server (#22292) 2022-06-13 16:29:35 -05:00
Zachary Williams b924d086ee chore: prep npm packages for use with Cypress v10
BREAKING CHANGE: new version of packages for Cypress v10
2022-06-13 12:06:26 -05: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 ada7179acb fix: next 12.1.6 support and add tests (#21515) 2022-05-18 10:17:33 +10:00
Tyler Biethman 3967c22b7d Merge branch '10.0-release' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10-with-electron 2022-05-17 01:34:18 -05:00
Alejandro Estrada 140b4ba211 fix: display cy.mount command log (#21500)
* fix: display cy.mount log

* Update with feedback
2022-05-17 12:36:52 +10:00
Tyler Biethman 07159e8664 Merge branch '10.0-release' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10-with-electron
# Conflicts:
#	circle.yml
2022-05-13 11:20:51 -05:00
Zachary Williams 0f786ab893 fix: ct testing support for node 17+ (#21430) 2022-05-13 11:01:30 -05:00
Tyler Biethman 2d69c7451b MORE TYPES 2022-05-12 15:37:35 -05:00
Zachary Williams 00a0f5a0e9 fix: restart dev-server on config change (#21212)
* fix: restart dev-server on config change

* close dev server before cp is spawned

* fix test that is failing... not sure why

* cleanup unsued close events

* remove wait

* add back in close for unit tests

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-05-02 12:05:01 +10:00
Zachary Williams dd180c89b2 fix: supportFile path and supportFile false for vite on windows (#21156)
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-25 15:58:06 -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
Lachlan Miller aa98f2e3e2 Merge pull request #21045 from cypress-io/merge-develop-4-12
chore: merge develop into 10.0-release
2022-04-13 19:30:22 -07: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
David Munechika ccae965edc fix merge conflicts 2022-04-12 08:52:19 -04:00
Tim Griesser e1da852473 feat: add new webpack-dev-server package based on object API & bundling (#20861)
Adds the new webpack-dev-server-fresh package, exposing the new object api. This package will eventually be merged with/replace the existing webpack-dev-server

closes: UNIFY-1267
2022-04-05 12:05:33 -04:00
Zachary Williams 2c8e97df24 refactor: lift indexHtmlFile up to component, add validation (#20870) 2022-04-01 09:45:21 -05:00
semantic-release-bot 196541db7d chore: release @cypress/webpack-dev-server-v1.8.4
[skip ci]
2022-03-29 12:52:53 -04: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
Lukas Stuart-Fry a472427160 fix(deps): add 'lodash' to webpack-dev-server plugin dependencies (#20815) 2022-03-29 23:51:53 +10:00
David Munechika 07bc5465dd merge develop 2022-03-15 10:56:04 -04:00
semantic-release-bot 30206af461 chore: release @cypress/webpack-dev-server-v1.8.3
[skip ci]
2022-03-14 23:14:35 -04: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 2875ddd98a Add additional comments to plugin 2022-03-08 10:54:32 -08: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
Zachary Williams 3a8797e54d fix: wire up scaffolded indexHtml to dev servers (#20453)
* fix: wire up scaffolded indexHtml to dev servers

* fix vite tests

* update vuecli-5, fix system tests

* fix vite build error and launchpad test

* remove only

* address comments, remove gitignores

* remove only
2022-03-04 14:16:06 +10:00
semantic-release-bot 024308b5d7 chore: release @cypress/webpack-dev-server-v1.8.2
[skip ci]
2022-03-03 15:44:11 -05:00
Barthélémy Ledoux 9f6090170b fix: avoid nextjs unsafeCache and watchOptions (#20440) 2022-03-03 14:15:51 -06: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