mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #2853] [CLOSED] feat: Ability to test headers in test request #4112
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/2853
Author: @BirnadinErick
Created: 11/14/2022
Status: ❌ Closed
Base:
main← Head:main📝 Commits (3)
4bca57achore: updated tech stack list4121bdeupdate devcontainer.json to include ssh featuref92e3f2feat: add toHaveHeaderValue function to pwAPI📊 Changes
6 files changed (+172 additions, -6 deletions)
View changed files
📝
.devcontainer/devcontainer.json(+4 -1)📝
README.md(+1 -1)📝
packages/hoppscotch-app/src/helpers/editor/extensions/HoppEnvironment.ts(+3 -3)📝
packages/hoppscotch-app/src/helpers/terndoc/pw-test.json(+2 -1)➕
packages/hoppscotch-js-sandbox/src/__tests__/testing/expect/toHaveHeaderValue.spec.ts(+93 -0)📝
packages/hoppscotch-js-sandbox/src/test-runner.ts(+69 -0)📄 Description
Closes #2852
Description
This PR includes commit to add shortcut method to test for headers and their value from the response in test scripts. This function also supports negation with
notChecks
Additional Information
Now, a test to the header can be done as followed...

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.