Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cypress Plugin #1580

Merged
merged 22 commits into from
Mar 24, 2025
Merged

Cypress Plugin #1580

merged 22 commits into from
Mar 24, 2025

Conversation

Ericlm
Copy link
Contributor

@Ericlm Ericlm commented Feb 26, 2025

Implements the automatic generation of typed Cypress requests as Cypress commands.

Closes #1579

Copy link

changeset-bot bot commented Feb 26, 2025

🦋 Changeset detected

Latest commit: b7e531a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@kubb/plugin-cypress Minor
@kubb/cli Minor
@kubb/config-biome Minor
@kubb/config-ts Minor
@kubb/config-tsup Minor
@kubb/core Minor
@kubb/fs Minor
@kubb/oas Minor
@kubb/parser-ts Minor
@kubb/plugin-client Minor
@kubb/plugin-faker Minor
@kubb/plugin-msw Minor
@kubb/plugin-oas Minor
@kubb/plugin-react-query Minor
@kubb/plugin-redoc Minor
@kubb/plugin-solid-query Minor
@kubb/plugin-svelte-query Minor
@kubb/plugin-swr Minor
@kubb/plugin-ts Minor
@kubb/plugin-vue-query Minor
@kubb/plugin-zod Minor
@kubb/react Minor
@kubb/types Minor
kubb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Ericlm
Copy link
Contributor Author

Ericlm commented Mar 6, 2025

I'm not sure to add the functions to the Cypress global commands as it could add a lot of noise. However, they will be chainable so users would be able to wrap the requests in commands if necessary.

@Ericlm
Copy link
Contributor Author

Ericlm commented Mar 6, 2025

Things to know

  • This is my first contribution to this project (and in using tsx) so I guess I didn't follow the best practices

  • Pretty much all of the plugin in based on plugin-msw

  • While updating the documentation I thought it would be nice to have those in a cypress folder ; however I don't think there is anything in the plugin that says so

  • I removed fakerName as it wasn't useful in this plugin

  • I didn't make cypress commands as it could be annoying (but could be added later)

@Ericlm Ericlm marked this pull request as ready for review March 6, 2025 18:16
@stijnvanhulle
Copy link
Collaborator

@Ericlm Thanks for opening this pr, I changed some things to align with other plugins and also added some examples for the new Cypress plugin. For now ,this will be a basic(just creating the cy.request) implementation, more to follow if there is a need for tasks or more specific commands.

@Ericlm
Copy link
Contributor Author

Ericlm commented Mar 24, 2025

Thank you very much for you help! And thank you for Kubb in general 😄

@stijnvanhulle stijnvanhulle merged commit 0bc628c into kubb-labs:main Mar 24, 2025
6 checks passed
@github-actions github-actions bot mentioned this pull request Mar 24, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cypress request plugin
2 participants