Skip to content

cy.route2 does not automatically JSONify an empty array handler #8532

Closed
@flotwig

Description

@flotwig

Current behavior:

This is not automatically JSONified:

cy.route2('/favorite-fruits', [])

This is:

cy.route2('/favorite-fruits', ['foo'])

Desired behavior:

Empty arrays are automatically JSONified.

Activity

cypress-bot

cypress-bot commented on Sep 15, 2020

@cypress-bot
Contributor

The code for this is done in cypress-io/cypress#8578, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

cypress-bot

cypress-bot commented on Sep 29, 2020

@cypress-bot
Contributor

Released in 5.3.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v5.3.0, please open a new issue.

1 remaining item

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @flotwig

    Issue actions

      cy.route2 does not automatically JSONify an empty array handler · Issue #8532 · cypress-io/cypress