Current behavior:
When passing a file containing null content to cy.fixture(), an error is thrown: Cannot read property '__error' of null
Desired behavior:
Should read in null.json file as this is valid.
Test code to reproduce
it('works when fx in route', () => {
cy.visit('https://example.cypress.io/commands/aliasing')
cy.server()
cy.route('GET', 'comments/*', 'fx:null.json').as('getComment')
cy.get('.network-btn').click()
cy.wait('@getComment').its('status').should('eq', 200)
})
it('works with non-null json', () => {
cy.fixture("user.json")
})
it('fails with application error', () => {
cy.fixture("null.json")
})

Versions
4.10.0 (I thought this may have been a regression, but it appears to not be).
Current behavior:
When passing a file containing
nullcontent tocy.fixture(), an error is thrown:Cannot read property '__error' of nullDesired behavior:
Should read in
null.jsonfile as this is valid.Test code to reproduce
Versions
4.10.0 (I thought this may have been a regression, but it appears to not be).