mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3677] [MERGED] feat(js-sandbox): add pw.env.unset method #4489
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#4489
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/3677
Author: @ajmalmohad
Created: 12/19/2023
Status: ✅ Merged
Merged: 1/23/2024
Merged by: @AndrewBastin
Base:
release/2023.12.3← Head:feature/unset-var-script📝 Commits (5)
d680e49feat: added unset variable to sandbox9d64616chore: fixed commentsfbfebc8test: increase coveragec101f3crefactor: leverage helpers939d952feat: show deletions for global environment in test results📊 Changes
8 files changed (+328 additions, -51 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/http/TestResult.vue(+7 -0)📝
packages/hoppscotch-common/src/helpers/terndoc/ecma.json(+2 -1)📝
packages/hoppscotch-common/src/helpers/terndoc/pw-pre.json(+1 -0)📝
packages/hoppscotch-common/src/helpers/terndoc/pw-test.json(+1 -0)📝
packages/hoppscotch-js-sandbox/src/__tests__/preRequest.spec.ts(+4 -3)➕
packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/unset.spec.ts(+243 -0)📝
packages/hoppscotch-js-sandbox/src/__tests__/testing/test-runner.spec.ts(+2 -2)📝
packages/hoppscotch-js-sandbox/src/utils.ts(+68 -45)📄 Description
We can unset variables using unset function in pre-request script and test script
Closes #3398
Description
Unset function is added to the Javascript Sandbox. It will work on both pre-request scripts and test scripts. An associated test suite was added. Also, the test results UI will now show deletions for the global environment.
Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.