Commit Graph

49 Commits

Author SHA1 Message Date
Lachlan Miller 7b242acbf6 fix: remove unnecessary dependency (#16412) 2021-05-11 14:02:34 +10:00
Barthélémy Ledoux c4151fbd9f fix: accept webapck 4 & 5 as peer dependencies of @cypress/vue and @cypress/react (#16290) 2021-05-03 13:45:12 -05:00
Lachlan Miller d5bbf7bdeb Merge branch 'master' into develop 2021-04-29 02:41:54 +00:00
Lachlan Miller bd78337752 fix: bump deps and release new version (#16261) 2021-04-29 12:41:19 +10:00
Ben Kucera 0fce48787c chore: upgrade percy (#16020)
* upgrade percy
* update yarn.lock
* remove percy/healthcheck
* reduce to one percy version
* fix percy for component testing - dont let component runner overwrite spec globals
* fix type-check
2021-04-26 17:40:33 -04:00
Lachlan Miller fe0b63c299 fix: improve handling of userland injected styles in component testing (#16024)
* feat(npm/react): do not clear head between tests

* add a shared mount utils library

* add readme

* update dependencies

* add mount utils to circle

* change module

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-04-22 01:48:48 +10:00
Barthélémy Ledoux 64cfa06c1e docs: make clean examples of vue component testing (#15796)
* remove all existsing examples

* create vue cli project

* add nuxt app example

* test: fix some vite tests

* docs: add tests to nuxt example

* add test script to nuxt example

* docs: add cy plugin nuxt

* fix: avoid creating support files

* test: add tests for vue cli

* test: fix CLI example

* fix the test

* test: make all vue examples be tested in ci

* ci: use minimist

* ci: fix cwd

* adjust the model for .env files making it easy to comment/uncomment the examples opened.

* protect empty module

* fix nuxt tests

* fix test protection

* more clear fix
2021-04-08 10:00:05 +10:00
Adam Gastineau 0ca53c783d chore: TypeScript 4.2.3 (#15646) 2021-04-06 08:21:21 -07:00
Lachlan Miller df8cb0345f fix: make cypress/react public (#15799)
* fix: unrestrict access to react/cypress

* make cypress-react public
2021-04-06 12:49:40 +10:00
Lachlan Miller 4c5623fb1c fix: unrestrict access to react/cypress (#15798) 2021-04-06 11:37:08 +10:00
Jessica Sachs 4a228060a8 Merge remote-tracking branch 'origin' into 7.0-release 2021-04-02 12:52:49 -04:00
Dmitriy Kovalenko 254eb47d91 fix(component-testing): Fix webpack-dev-server deps validation crash (#15708)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-04-02 10:12:57 -05:00
Zach Bloomquist 16e1577848 Merge remote-tracking branch 'origin/develop' into 7.0-release 2021-03-24 16:27:56 -07:00
Jessica Sachs ee2b1beb22 chore: remove conditional test suite, ciDependents, and ciJobs (#15552)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-03-18 13:09:16 -04:00
Jessica Sachs 018407b4b5 chore: adding a test for the release scripts (#15551) 2021-03-18 01:25:30 -04:00
renovate[bot] b52ac98a69 feat(deps): update dependency electron to version 12.x 🌟 (#15292)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-03-10 15:24:00 +00:00
Zach Bloomquist e049185628 chore: remove invalid nohoist (#15346)
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
2021-03-05 19:51:07 +00:00
Dmitriy Kovalenko fc30118252 feat(@cypress/react): Make correct plugins for different adapters/bundlers (#15337)
* Remove unused stuff

* Fix eslint errors

* Use local cypress running script

* Fix dependency resolution

* Revert "Fix dependency resolution"

This reverts commit 01a70be211.

* Add @cypress/react CI

* Properly resolve @types pacakges

* Run tests with mocha

* Fix cypress tests

* Fix or skip some specs

* Add retries to the card-spec.js

* Remove jest mocks

* Run e2e examples on CI

* Fix yarn cache key

* Fix e2e examples jobs

* Rename cypress-react-unit-test with @cypress/react

* Fix circleci.yml

* Revert "Fix e2e examples jobs"

This reverts commit efcc7c4d19.

* Revert " Rename cypress-react-unit-test with @cypress/react"

This reverts commit 4febfcc82b.

* Replce cypress-react-unit-test with @cypress/react

* Persist build artifacts

* Fix working directory paths circle.yml

* Fix more CI

* adding yarn.lock files

* Make package.json for  folder

* Remove .npmrc

* Update circle.yml

* Remove unused files

* Copy plugins files to the "dist" folder

* Fix links to the github repos

* Move init wizard from npm/react/init to npm/wizard

* Move init wizard from npm/react/init to npm/wizard

* Implement initial vue template

* Run wizard tests on CI

* Refactor continue: bool to success: bool for better code readability

* Fix circleci.yml

* Use only absolute paths for tests

* Stub process.exit calls

* Remove useless comments

* Add installation cypress to the wizard logic

* More improvements

* Include packages/examples/cypress into git

* Commit new files

* Use packages/example as SST for generated files

* Last improvements for wizard

* Update packages/server/lib/scaffold.js

* Rename wizard to create-cypress-tests

* Fix circleci config

* Fix snapshot tests

* Run all create-cypress-tests on ci

* Do not install plugins and scaffold files from kitchensink

* Ignore integration/examples folder for packages/example

* Run create-cypress-tests-tests on CI

* Add copy example cross-platform script

* Use copy example script in tests

* feat: create-cypress-tests auto-inject config (#9116)

* Implement the basic babel code transformation for configs

* Add more tests for edge-cases

* Add snapshot tests for autogenerated code for each template

* Add git status guard

* Add git status guard

* Fix last test

* Fix tests

* Revert changes for packages/example

* Revert changes for packages/example/tsconfig.json

* Prepeare package for the release

* Fix inquirer name

* v0.0.125

* v0.0.127

* v0.0.128

* v0.0.130

* v0.0.131

* Add more UX features

* Add vue-cli template

* Make src as default folder for vue-cli template

* Revert dev-time changes

* Run appveyour windows build

* Run full appveyour build

* Fix circle.yml

* Update plugins

* Join paths for windows

* Revert example/lib changes

* Fix tests

* Revert unnecessary changes

* Implement dev-server dependency installation

* Update npm/create-cypress-tests/README.md

* Properly exit process if react tests failed

* Fix circleci reporter not found

* Update nextjs plugin

* react-scripts plugin for dev-server

* Implement webpack-file plugin support

* v0.0.502

* v0.0.503

* Implement rollup support

* Implement babel plugin

* Update webpack options

* Fix nextjs plugin

* Unmount components in beforeEach to prevent side-effects

* Rename preprocessor to injectDevServer

* Fix next.js example

* Fix webpack-options exampel

* Reproduce rollup problem

* Update create-cypress-tests snapshots

* Do not run examples/rollup

* Uncomment test

* Change paralllelism

* Remove useless checks

* Update snapshots

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-03-05 18:16:22 +02:00
Dmitriy Kovalenko c405ee89ef feat: create-cypress-tests installation wizard (#9563)
* Remove unused stuff

* Fix eslint errors

* Use local cypress running script

* Fix dependency resolution

* Revert "Fix dependency resolution"

This reverts commit 01a70be211.

* Add @cypress/react CI

* Properly resolve @types pacakges

* Run tests with mocha

* Fix cypress tests

* Fix or skip some specs

* Add retries to the card-spec.js

* Remove jest mocks

* Run e2e examples on CI

* Fix yarn cache key

* Fix e2e examples jobs

* Rename cypress-react-unit-test with @cypress/react

* Fix circleci.yml

* Revert "Fix e2e examples jobs"

This reverts commit efcc7c4d19.

* Revert " Rename cypress-react-unit-test with @cypress/react"

This reverts commit 4febfcc82b.

* Replce cypress-react-unit-test with @cypress/react

* Persist build artifacts

* Fix working directory paths circle.yml

* Fix more CI

* adding yarn.lock files

* Make package.json for  folder

* Remove .npmrc

* Update circle.yml

* Remove unused files

* Copy plugins files to the "dist" folder

* Fix links to the github repos

* Move init wizard from npm/react/init to npm/wizard

* Move init wizard from npm/react/init to npm/wizard

* Implement initial vue template

* Run wizard tests on CI

* Refactor continue: bool to success: bool for better code readability

* Fix circleci.yml

* Use only absolute paths for tests

* Stub process.exit calls

* Remove useless comments

* Add installation cypress to the wizard logic

* More improvements

* Include packages/examples/cypress into git

* Commit new files

* Use packages/example as SST for generated files

* Last improvements for wizard

* Update packages/server/lib/scaffold.js

* Rename wizard to create-cypress-tests

* Fix circleci config

* Fix snapshot tests

* Run all create-cypress-tests on ci

* Do not install plugins and scaffold files from kitchensink

* Ignore integration/examples folder for packages/example

* Run create-cypress-tests-tests on CI

* Add copy example cross-platform script

* Use copy example script in tests

* feat: create-cypress-tests auto-inject config (#9116)

* Implement the basic babel code transformation for configs

* Add more tests for edge-cases

* Add snapshot tests for autogenerated code for each template

* Add git status guard

* Add git status guard

* Fix last test

* Fix tests

* Revert changes for packages/example

* Revert changes for packages/example/tsconfig.json

* Prepeare package for the release

* Fix inquirer name

* v0.0.125

* v0.0.127

* v0.0.128

* v0.0.130

* v0.0.131

* Add more UX features

* Add vue-cli template

* Make src as default folder for vue-cli template

* Revert dev-time changes

* Run appveyour windows build

* Run full appveyour build

* Fix circle.yml

* Update plugins

* Join paths for windows

* Revert example/lib changes

* Fix tests

* Revert unnecessary changes

* Implement dev-server dependency installation

* Update npm/create-cypress-tests/README.md

* Include webpack-options template in dist

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-03-05 07:51:53 +02:00
Barthélémy Ledoux aae4872305 build: use rollup to pack cypress/vue (#15210)
* build: use rollup to pack cypress/vue

* fix: remove unnecessary json plugin
2021-02-25 10:01:53 -06:00
Barthélémy Ledoux fa969fba78 fix: make webpack-dev-server a peer dependency (#15163)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-02-23 16:45:00 -06:00
Lachlan Miller 50cfa91e89 chore: add a script to run all react tests in a single step (#15137)
Co-authored-by: Дмитрий Коваленко <dmitrijkovalenko@Dmitrijs-MacBook-Pro.local>
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
2021-02-22 19:34:26 -05:00
Dmitriy Kovalenko 9c642369fc chore(component-testing): Remove useless code & deps in @cypress/react and @cypress/vue (#15113)
* Remove useless code

* Add code-coverage to reacr devDependencies

* Remove react/support imports

* Remove some useless code from @cypress/react

* Cleanup vue

* Make it works :)

* Fix react errors

* Fix next.js react example

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-02-19 14:58:40 -06:00
Barthélémy Ledoux de60d92608 Merge branch 'develop' into master-merge-up 2021-02-17 15:50:15 -06:00
Barthélémy Ledoux 4732937fc8 build: avoid infininte rollup refresh on watch (#15132)
exclude the dist folder from rollup watch
2021-02-17 15:49:54 -06:00
Zach Panzarino 3a6f3b1928 fix: trigger semantic release (#15128) 2021-02-17 18:29:32 +00:00
Barthélémy Ledoux e028262aed fix: update dependencies of npm/react-vue (#15095)
BREAKING CHANGE: change of architecture for
component testing

Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
2021-02-15 15:45:17 -06:00
Jessica Sachs 02575ff987 chore: swapping react to use rollup (#15031)
* wip react to rollup

* remove comment

* chore: update build script

* we were tree shaking the support file hooks

* updating the scripts for reacts package.json

* Revert "updating the scripts for reacts package.json"

This reverts commit 7ca3ac8e61.

* adding watch task without modifying circleci

* bundle types correctly

* bundle types correctly 2

* fixing support to immediately invoke the new method on hooks

* run the hooks only in support

* Revert "run the hooks only in support"

This reverts commit 939e4c5942.

* fix: remove hooks from support entirely

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-02-11 17:59:59 -06:00
Barthélémy Ledoux 9668694bc6 chore: make run-ct consistent with open-ct (#14902)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-02-04 20:54:44 -05: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
Pavel Strunkin bc18e05fdd 14601: add additional folders to transpile (#14602) 2021-01-30 18:28:22 +02:00
Dmitriy Kovalenko 4318b6707c Merge branch 'develop' into react-bump-peer-react 2021-01-19 08:07:06 +02:00
renovate[bot] 9be61657f4 fix(deps): update dependency debug to version 4.3.1 🌟 (#14583)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-19 12:21:05 +06:30
Yaroslav Kiliba 48315600a4 [react] chore(deps): bump react in peer dependencies 2021-01-17 19:15:32 +02:00
Armand Abric b87519d4f1 fix: typo in @types/react peer dependency package name (#14261) 2021-01-05 00:46:19 -05:00
Zach Panzarino 3eb3bfa487 build: properly use local npm packages for development and binary build (#14182) 2021-01-05 00:34:13 -05:00
Phoenix Eliot 012d4f1764 fix: Correct typo in @types/react peerDependencyMeta entry (#14306)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2020-12-24 04:15:01 -05:00
Umidbek Karimov 506af90042 Merge branch 'master' into develop 2020-12-21 10:00:54 +00:00
Umidbek Karimov e2bc2091a9 fix(react): link types from the correct directory (#14255) 2020-12-21 12:00:10 +02:00
anark 2c4349ea71 fix(deps): update dependencies in @cypress/react (#14165)
* update dependencies in @cypress/react

* actually update babel packages for @cypress/react

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2020-12-16 12:21:03 +02:00
Zach Bloomquist c87f7b9104 chore: revert "feat: create-cypress-tests wizard (#8857)" (#9554) 2020-12-07 17:09:32 -05:00
Dmitriy Kovalenko 21ee591d1e feat: create-cypress-tests wizard (#8857)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2020-11-30 13:20:43 -05:00
Dmitriy Kovalenko 88e332c530 fix: cypress/react release process (#9284)
kitchen sink will be broken until 6.0 is finished.
2020-11-23 13:59:31 -05:00
Jessica Sachs 550c05cc3d fix: adding build-prod tasks to all of the npm dependencies that need artifacts (#9045) 2020-10-30 12:27:52 -04:00
Zach Panzarino 34186cb8b7 fix: update bugs link in package.json (#9015) 2020-10-28 23:12:01 -04:00
Zach Panzarino 5842d1dffe build: conditional CI jobs, dynamic test requirements for release, updated independent package release process (#8730) 2020-10-28 18:03:28 -04:00
Dmitriy Kovalenko a89e4a0373 chore: Fix red master (#8841) 2020-10-14 10:55:57 -04:00
Dmitriy Kovalenko 5e4b638385 fix: make imported @cypress/react working and pass CI (#8718)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2020-10-14 02:45:48 -04:00
Dmitriy Kovalenko 30a5981b11 import bahmutov/cypress-react-unit-test to npm/react/ 2020-10-01 13:54:22 +03:00