Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Cypress Plugin #1580

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Cypress Plugin #1580

wants to merge 14 commits into from

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: 719bb62

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 Patch
@kubb/cli Patch
@kubb/config-biome Patch
@kubb/config-ts Patch
@kubb/config-tsup Patch
@kubb/core Patch
@kubb/fs Patch
@kubb/oas Patch
@kubb/parser-ts Patch
@kubb/plugin-client Patch
@kubb/plugin-faker Patch
@kubb/plugin-msw Patch
@kubb/plugin-oas Patch
@kubb/plugin-react-query Patch
@kubb/plugin-redoc Patch
@kubb/plugin-solid-query Patch
@kubb/plugin-svelte-query Patch
@kubb/plugin-swr Patch
@kubb/plugin-ts Patch
@kubb/plugin-vue-query Patch
@kubb/plugin-zod Patch
@kubb/react Patch
@kubb/types Patch
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

@kubb-labs
Copy link

kubb-labs bot commented Feb 26, 2025

The preview deployment failed. 🔴

Open Build Logs

Last updated at: 2025-03-10 11:52:02 CET

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cypress request plugin
2 participants