Commit Graph

1228 Commits

Author SHA1 Message Date
Emily Rohrbough 4d5f903eaf chore: replace fast-glob with globby; remove unneeded getenv dep (#26730) 2023-06-05 13:33:09 -05:00
Jordan fd63f19cbc chore: enable caching for lint task (#26791) 2023-06-02 16:47:02 -04:00
Emily Rohrbough d59348798f chore: replace arg devDep with minimist; remove unused shx devDep (#26727) 2023-06-02 15:13:08 -05:00
Jennifer Shehane 7ef4300a6b chore: Deprecate @cypress/xpath package (#26893) 2023-06-01 11:09:32 -04:00
semantic-release-bot 3df65f73e1 chore: release @cypress/vite-plugin-cypress-esm-v1.0.1
[skip ci]
2023-05-23 15:49:10 -04:00
Mike Plummer 38b952622e fix: Vite esm plugin issues (#26714) 2023-05-12 15:23:09 -05:00
semantic-release-bot bc6e9e4918 chore: release @cypress/vite-plugin-cypress-esm-v1.0.0
[skip ci]
2023-05-04 05:08:52 -04:00
Lachlan Miller 42d4f836cf feat: initial release of cypress/vite-plugin-cypress-esm (#26663) 2023-05-04 13:02:01 +10:00
Lachlan Miller 234681f3e9 chore: update npm/vue to use latest test utils (#26633)
* chore: bump @vue/test-utils version

* add test

* update changelog and config

* improve changelog and test
2023-05-03 10:13:59 +10:00
Lachlan Miller ba38efeb63 chore: add releaserc to vite plugin esm (#26601)
* chore: add releaserc to vite plugin esm

* update workflows

* run plugin on CI
2023-05-02 10:54:55 +10:00
semantic-release-bot f46acffc9c chore: release @cypress/webpack-preprocessor-v5.17.1
[skip ci]
2023-05-01 09:43:23 -04:00
Mike Plummer 91cbc6741c chore: Update Vite to 4.3.0 (#26553)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-04-27 15:09:31 -05:00
renovate[bot] ac50b974a1 dependency(deps): update dependency deps-ok to v1.4.1 🌟 (#26612) 2023-04-27 09:31:09 -06:00
Lachlan Miller 466155c212 chore: implement experimental ESM stub/spy for Vite (#26536)
* wip - no verify

* add tests

* remove old files

* old code

* fix bug with illegal property def

* update config

* spies

* update

* fix bugs

* caching

* update name of package

* fix bug

* debugging

* rename

* handle edge cases with more advanced syntax

* apply transform globally

* rename package

* revert name change

* update readme

* add test for other assets

* update yarn.lock

* chore: updating v8 snapshot cache

* revert lock file

* add test command

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* update README

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>

* better comments

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>

* update package.json

* handle edge case for new class instances

* add edge case

* Fix function prototype edge case

* Copy function prototypes across when proxying
* Add more debug logging, ensure logs are guarded by `debug` flag
* Improve perf of constructor function detection
* Fix potential nil access during spy detection
* Fix logger name

* Handle wildcard import syntax

* edge case for arrays

* ignore list

* log

* add notes

* add edge case

* add docs on known issues

* docs

* lock version

* update name

* fix comments

* Update README

* Apply suggestions from code review

Co-authored-by: Mark Noonan <mark@cypress.io>

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: Mark Noonan <mark@cypress.io>
2023-04-25 12:17:26 +10:00
Jordan e2439b19b4 chore: add support for Angular 16 (#26052)
* feat(angular): add support for Angular 16

* chore: update angular 16 pre-release version

* feat: handle getStylesConfig returning a Promise in Angular 16 (#26559)

* chore: remove next from deps to prepare for release

* remove .only, add angular-16 to webpack-dev-server e2e tests

---------

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
2023-04-24 09:57:12 -04:00
Lazaro e70ea9f11d chore(grep): Update README.md (#26469) 2023-04-10 14:25:26 -05:00
semantic-release-bot ae3e5e7129 chore: release @cypress/webpack-dev-server-v3.4.1
[skip ci]
2023-04-07 11:21:17 -04:00
semantic-release-bot f3d289411f chore: release create-cypress-tests-v2.0.2
[skip ci]
2023-04-07 11:21:04 -04:00
renovate[bot] 7311db00be dependency: update dependency commander to v6.2.1 🌟 (#26226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-04-07 09:52:25 -05:00
Lachlan Miller e8390f46cd fix: correctly pass resolvedBaseUrl for Next.js 13.2.0+ (#26399)
* add test project

* styles

* pass resolvedBaseUrl

* make project more minimal

* build binaries

* changelog

* remove css

* pass supportedBrowsers to next webpack config

* handle case of missing getSupportedBrowsers function

* add default function
2023-04-06 13:09:25 +10:00
Emily Rohrbough f49e25322c chore: list rimraf dev-dependency once in repo (#26257) 2023-03-28 20:49:09 -05:00
Lachlan Miller 6ba6200d22 chore: revert to vite 4.1 (#26162)
Co-authored-by: marktnoonan <mark@cypress.io>
2023-03-21 10:49:24 -04:00
semantic-release-bot 98bdc39eff chore: release @cypress/webpack-dev-server-v3.4.0
[skip ci]
2023-03-20 12:49:26 -04:00
semantic-release-bot 0a300b36b3 chore: release @cypress/vue-v5.0.5
[skip ci]
2023-03-20 12:49:15 -04:00
semantic-release-bot 913de854c2 chore: release @cypress/vite-dev-server-v5.0.5
[skip ci]
2023-03-20 12:49:01 -04:00
semantic-release-bot ba4f722164 chore: release @cypress/react-v7.0.3
[skip ci]
2023-03-20 12:48:49 -04:00
Adam Stone-Lord 3a2b2d3323 fix(vite-dev-server): do not use incremental esbuild option with Vite v4.2.0+ (#26139)
* fix: do not use `incremental` esbuild option with Vite v4.2.0+

* fix(vite-dev-server): do not use `incremental` esbuild option with Vite v4.2.0+

* feedback

* add changelog entry

* update changelog entry

* remove system test

* invert config logic

* Update cli/CHANGELOG.md

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>

---------

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
2023-03-20 09:09:43 +10:00
Radik24 6397ac60da fix: Vite dev server add searchForWorkspaceRoot (#26036)
* misc: Vite dev server add searchForWorkspaceRoot

* misc: Vite dev server add searchForWorkspaceRoot

* trigger ci

* add null check

---------

Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-03-16 14:42:50 +10:00
Caleb Ukle ea8173f6d9 feat: support custom workspaceRoot for angular CT (#26030)
* fix: support custom workspaceRoot for angular CT

* test(system-tests): wip nx system tests

* test: remove system-tests until we can test nx

---------

Co-authored-by: Jordan <jordan@jpdesigning.com>
2023-03-16 08:59:40 +10:00
semantic-release-bot 4d227edf32 chore: release @cypress/grep-v3.1.5
[skip ci]
2023-03-15 09:41:05 -04:00
Jordan 7a18b79efa fix(grep): references to cypress-grep (#26108)
* fix(grep): references to cypress-grep

* Update npm/grep/README.md

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

---------

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-03-15 09:10:38 -04:00
semantic-release-bot 6532a866f1 chore: release @cypress/webpack-dev-server-v3.3.1
[skip ci]
2023-03-14 12:02:15 -04:00
semantic-release-bot c52bb91174 chore: release @cypress/webpack-batteries-included-preprocessor-v2.4.1
[skip ci]
2023-03-14 12:02:01 -04:00
semantic-release-bot 1788f252f3 chore: release @cypress/angular-v2.0.3
[skip ci]
2023-03-14 12:01:45 -04:00
Chris Breiding ed69f0ba67 fix: Fix issues with Cypress.require() and TypeScript (#25931)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2023-03-08 16:25:28 -05:00
Adam Stone-Lord a9ab4c7527 fix(webpack-dev-server): Pass in jsconfig to get webpack config for Next.js >= 13.2.1 (#26005) 2023-03-06 10:31:47 -05:00
Michal Wozniak e674f43040 fix(angular): mount cy-root in original location (#25965)
* fix(angular): mount cy-root in original location

* correctly fix insertRootElement to preserves html hierarchy, trim system-tests

---------

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2023-03-01 16:12:34 -05:00
semantic-release-bot 3769319228 chore: release @cypress/vite-dev-server-v5.0.4
[skip ci]
2023-02-23 22:43:58 -05:00
Lachlan Miller 0981fcf6ac fix: vite-dev-server windows (#25889)
* chore: update vite in system test

* fix: vite-dev-server on windows

* fix slash

* windows

* try to run windows again

* update

* chore: comment [skip ci]

* update
2023-02-22 12:44:20 +10:00
semantic-release-bot 1e8b22049c chore: release @cypress/webpack-dev-server-v3.3.0
[skip ci]
2023-02-21 03:13:34 -05:00
Lachlan Miller 1d3aab9d70 feat: Public API for CT Framework Definitions (#25780)
* chore: rework component onboarding in launchpad (#25713)

* chore: refactoring and types

* rework source of frameworks

* revert rename

* fix tests

* fix more tests

* types

* update code

* use same public API internally

* rename interfaces

* rename

* work on dev server api

* fix types

* fix test

* attempt to support getDevServerConfig

* tests

* add function to define framework [skip ci]

* rework a lot of types

* fix test

* update tests and types

* refactor

* revert changes

* lint

* fix test

* revert

* remove

* add "community" label [skip ci]

* refactor

* types

* lint

* fix bug

* update function name

* address feedback

* improve types with Pick

* refactor using type guard

* correct label

---------

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* chore: typing error

* feat: scan for 3rd party ct plugins (#25749)

* chore: refactoring and types

* rework source of frameworks

* revert rename

* fix tests

* fix more tests

* types

* update code

* use same public API internally

* rename interfaces

* rename

* work on dev server api

* fix types

* fix test

* attempt to support getDevServerConfig

* tests

* add function to define framework [skip ci]

* rework a lot of types

* fix test

* update tests and types

* refactor

* revert changes

* lint

* fix test

* revert

* remove

* add "community" label [skip ci]

* refactor

* types

* lint

* fix bug

* update function name

* address feedback

* feat: scan for 3rd party ct plugins

* add e2e test

* unit tests [run ci]

* tweak resolution

* rebase, address comments

* fix windows paths

* remove .gitignore

* fix test

---------

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

* lint config

* spacing

* try fix race cond

* fix import error

* build binary

* try update snapshot

* try using require

* support namespaced definitions (#25804)

* remove category

* add icon prop

* support esm -> cjs compiled typescript

* fix test

* misc: add CTA footer to launchpad framework dropdown (#25831)

* remove test project dependencies

* rebase

* windows

* windows again

* add changelog entry

* changelog

* revert workflow

* remove worklfow

---------

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Adam Stone-Lord <adams@cypress.io>
2023-02-21 17:43:20 +10:00
semantic-release-bot 147c8f56a6 chore: release @cypress/webpack-dev-server-v3.2.4
[skip ci]
2023-02-20 10:14:30 -05:00
Adam Stone-Lord 87816de1b7 fix(webpack-dev-server): touch component-index during onSpecsChange to avoid writing to app file (#25861)
* testing: try disabling uTimesSync and see what happens

* build binaries [run ci]

* fix: touch component index file instead of browser.js

* build binaries [run ci]

* update test

* fix test

* add test for custom HTML file in config

* use existing component index in webpack-dev-server unit tests

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-02-20 16:09:19 +10:00
semantic-release-bot 8ddc9b6faa chore: release @cypress/vite-dev-server-v5.0.3
[skip ci]
2023-02-17 09:53:17 -05:00
semantic-release-bot f9cf41ad42 chore: release @cypress/angular-v2.0.2
[skip ci]
2023-02-17 09:53:03 -05:00
Zachary Williams 104eef5dfb fix: mount component in [data-cy-root] (#25807)
* fix(angular): mount component in [data-cy-root]

* fix e2e test

* add changelog entry

* changelog [skip ci]

* changelog

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-02-17 20:21:36 +10:00
Paolo Caleffi d54fa65f58 fix: allow running tests outside Vite project root folder (#25801)
* fix: allow running tests outside Vite project root folder

* update snapshots

* add changelog entry

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-02-17 15:02:35 +10:00
semantic-release-bot 641888ef91 chore: release @cypress/webpack-preprocessor-v5.17.0
[skip ci]
2023-02-15 11:16:12 -05:00
semantic-release-bot b7a21d6238 chore: release @cypress/webpack-batteries-included-preprocessor-v2.4.0
[skip ci]
2023-02-15 11:15:56 -05:00
Chris Breiding 41512c416a feat: Bundle cy.origin() dependencies at runtime (#25626)
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2023-02-13 11:59:29 -05:00