[PR #3993] [CLOSED] feat(script-api): add variables.replaceIn method with tests #4625

Closed
opened 2026-03-17 02:08:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3993
Author: @shipko
Created: 4/21/2024
Status: Closed

Base: mainHead: api-replaceIn


📝 Commits (2)

  • 2cfa58a feat(script-api): add variables.replaceIn method with tests
  • f8b6c83 fix(script-api): fix prev

📊 Changes

4 files changed (+80 additions, -1 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/terndoc/pw-pre.json (+3 -0)
📝 packages/hoppscotch-common/src/helpers/terndoc/pw-test.json (+4 -1)
📝 packages/hoppscotch-js-sandbox/src/__tests__/preRequest.spec.ts (+40 -0)
📝 packages/hoppscotch-js-sandbox/src/utils.ts (+33 -0)

📄 Description

Closes #3726

Description

This PR is first step for supporting variables.replaceIn method in Hoppscotch.
I have added:

  • GUID

  • randomUUID

  • timestamp

  • isoTimestamp

  • Not Completed

  • Completed

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

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

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3993 **Author:** [@shipko](https://github.com/shipko) **Created:** 4/21/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `api-replaceIn` --- ### 📝 Commits (2) - [`2cfa58a`](https://github.com/hoppscotch/hoppscotch/commit/2cfa58acc80e9f58b30a86f75066b7dce8a2f7f6) feat(script-api): add variables.replaceIn method with tests - [`f8b6c83`](https://github.com/hoppscotch/hoppscotch/commit/f8b6c830ad45db3c01546175b00a85add5e102b8) fix(script-api): fix prev ### 📊 Changes **4 files changed** (+80 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/terndoc/pw-pre.json` (+3 -0) 📝 `packages/hoppscotch-common/src/helpers/terndoc/pw-test.json` (+4 -1) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/preRequest.spec.ts` (+40 -0) 📝 `packages/hoppscotch-js-sandbox/src/utils.ts` (+33 -0) </details> ### 📄 Description Closes #3726 ### Description This PR is first step for supporting variables.replaceIn method in Hoppscotch. I have added: - GUID - randomUUID - timestamp - isoTimestamp - [ ] Not Completed - [x] Completed ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [x] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:08:35 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4625
No description provided.