Skip to content

Commit

Permalink
fix: Cannot set property response of undefined (#8965)
Browse files Browse the repository at this point in the history
  • Loading branch information
sainthkh authored Oct 26, 2020
1 parent 58116f5 commit a20a9e3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ export const onResponseReceived: HandlerFn<NetEventFrames.HttpResponseReceived>
// copy changeable attributes of userRes to res in frame
// if the user is setting a StaticResponse, use that instead
// @ts-ignore
request.response = continueFrame.res = {
continueFrame.res = {
..._.pick(continueFrame.staticResponse || userRes, SERIALIZABLE_RES_PROPS),
}

if (request) {
request.response = continueFrame.res
request.state = 'ResponseIntercepted'
}

Expand Down

4 comments on commit a20a9e3

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on a20a9e3 Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/5.5.0/circle-develop-a20a9e3c2f9d4ae12a00e11d6bf2b852d18a99b7/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on a20a9e3 Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 ia32 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/5.5.0/appveyor-develop-a20a9e3c2f9d4ae12a00e11d6bf2b852d18a99b7/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on a20a9e3 Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/5.5.0/appveyor-develop-a20a9e3c2f9d4ae12a00e11d6bf2b852d18a99b7/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on a20a9e3 Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/5.5.0/circle-develop-a20a9e3c2f9d4ae12a00e11d6bf2b852d18a99b7/cypress.tgz

Please sign in to comment.