-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
test: add e2e tests for proxy option #3748
base: master
Are you sure you want to change the base?
Conversation
} | ||
}, | ||
}, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should refactor out tests:
- proxyOptionsObject
- proxyOptionsArray
- proxyOptionsObjectWithMiltipleContext
- ...
- proxyOptionOfArrayWithoutTarget
- proxyWithPath
- ...
- proxyWithByPass
9 ...
Now we have mixed tests it is bad for refactor and bad for testing, the latest regression will be due this, so let's refactor our tests
|
||
exports[`proxy option should handles external websocket upgrade with webSocketServerType: ws Should receive response: response status 1`] = `426`; | ||
|
||
exports[`proxy option should handles external websocket upgrade with webSocketServerType: ws Should receive response: response text 1`] = `"Upgrade Required"`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, need to fix it
de9e416
to
f777df5
Compare
@snitin315 let's finish tests, thanks for help |
f777df5
to
f2d6da3
Compare
All other tests are moved to E2E, let's finish this one too. |
@alexander-akait Would like to know what is pending in this PR. I'd like to close it to complete :) |
I think need to fix CI |
Can you re trigger |
I see snapshots needs to be updated. I will push a commit here. |
For Bugs and Features; did you add new tests?
Yes
Motivation / Use-Case
Add e2e tests for
proxy
option.Breaking Changes
None
Additional Info
No