Commit Graph

15 Commits

Author SHA1 Message Date
Lachlan Miller dc78c0aeae resolve conflicts in master(fe0b63c29) and develop 2021-04-22 11:37:22 +10:00
Adam Gastineau 4002e4c5fd fix: Properly display unmount as a command (#16041) 2021-04-21 06:18:13 -07:00
Adam Gastineau ee8b918ea8 feat(component-testing): breaking: Add React rerender functionality (#16038) 2021-04-20 08:35:24 -07:00
Dmitriy Kovalenko 1ecbe493ad chore(@cypress/react): Rework command logging and snapshotting (#15628)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-03-25 11:31:06 +10:00
Dmitriy Kovalenko b1f831a86a fix(@cypress/react): Devtools unpredictable resets (#15612)
* fix: Devtools unpredictable resets

* Remove cleaning up from webpack-dev-server

* Fix lint errors

* Get back observer

* fix: bring back cleanup (#15634)

* fix: wait for fw teardown to do html teardown

* fix: port responsibility of teardown to frameworks

* chore: add comments

* fix: typings

* fix: react unmount cannot be called in the right hook

* run dtslint

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2021-03-25 10:43:34 +10:00
Lachlan Miller 153fc515a5 fix(component-testing): ensure to call unmount after each test (#15385)
* fix: ensure to call unmount after each test

* fix: do not append beforeEach

* fix: add hook

* chore: move unmount hook into npm/react

* chore: resolve conflicts

* chore: fix tests

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-03-11 02:07:49 +10: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 6b515c777c fix(@cypress/react): Correctly unmount react components (#15250) 2021-02-26 21:58:27 +02: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
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
Lachlan Miller ce7b65e766 chore: return true from CT 2021-02-10 08:51:27 +10: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
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
Dmitriy Kovalenko 30a5981b11 import bahmutov/cypress-react-unit-test to npm/react/ 2020-10-01 13:54:22 +03:00