[PR #2527] [MERGED] feat: added delay flag in @hoppscotch/cli and related tests #3874

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2527
Author: @devblin
Created: 7/23/2022
Status: Merged
Merged: 8/4/2022
Merged by: @AndrewBastin

Base: mainHead: feat/hopp-cli-delay


📝 Commits (4)

  • 8dd88ce feat: added delay flag in @hoppscotch/cli and related tests
  • 69b8b1f chore: updated lock file
  • 3ab0f9e refactor: updated request runner delay execution with new delay function
  • 1b64b34 chore: bump hoppscotch-cli version to 0.3.0

📊 Changes

13 files changed (+163 additions, -19 deletions)

View changed files

📝 packages/hoppscotch-cli/package.json (+1 -1)
📝 packages/hoppscotch-cli/src/__tests__/commands/test.spec.ts (+37 -8)
packages/hoppscotch-cli/src/__tests__/functions/request/delayPromiseFunction.spec.ts (+30 -0)
📝 packages/hoppscotch-cli/src/__tests__/functions/request/processRequest.spec.ts (+18 -3)
📝 packages/hoppscotch-cli/src/commands/test.ts (+2 -0)
📝 packages/hoppscotch-cli/src/index.ts (+4 -0)
packages/hoppscotch-cli/src/options/test/delay.ts (+20 -0)
📝 packages/hoppscotch-cli/src/types/collections.ts (+1 -0)
📝 packages/hoppscotch-cli/src/types/commands.ts (+1 -0)
📝 packages/hoppscotch-cli/src/types/request.ts (+7 -0)
📝 packages/hoppscotch-cli/src/utils/collections.ts (+14 -2)
📝 packages/hoppscotch-cli/src/utils/getters.ts (+5 -0)
📝 packages/hoppscotch-cli/src/utils/request.ts (+23 -5)

📄 Description

Closes #2507

Description

This feature introduces -d, --delay flag to allow providing delay (in milliseconds) between execution of consecutive requests.

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/2527 **Author:** [@devblin](https://github.com/devblin) **Created:** 7/23/2022 **Status:** ✅ Merged **Merged:** 8/4/2022 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `feat/hopp-cli-delay` --- ### 📝 Commits (4) - [`8dd88ce`](https://github.com/hoppscotch/hoppscotch/commit/8dd88ce44bf2f04f7c46defa23fe5724a9075ac7) feat: added delay flag in @hoppscotch/cli and related tests - [`69b8b1f`](https://github.com/hoppscotch/hoppscotch/commit/69b8b1fde9dd57cc171859ce53edb0d2e89d4eb6) chore: updated lock file - [`3ab0f9e`](https://github.com/hoppscotch/hoppscotch/commit/3ab0f9e7b2645a118a6083bd5fcdef95e81cd2c2) refactor: updated request runner delay execution with new delay function - [`1b64b34`](https://github.com/hoppscotch/hoppscotch/commit/1b64b34648c7216350e488257dab5a4c4e6296d0) chore: bump hoppscotch-cli version to 0.3.0 ### 📊 Changes **13 files changed** (+163 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-cli/package.json` (+1 -1) 📝 `packages/hoppscotch-cli/src/__tests__/commands/test.spec.ts` (+37 -8) ➕ `packages/hoppscotch-cli/src/__tests__/functions/request/delayPromiseFunction.spec.ts` (+30 -0) 📝 `packages/hoppscotch-cli/src/__tests__/functions/request/processRequest.spec.ts` (+18 -3) 📝 `packages/hoppscotch-cli/src/commands/test.ts` (+2 -0) 📝 `packages/hoppscotch-cli/src/index.ts` (+4 -0) ➕ `packages/hoppscotch-cli/src/options/test/delay.ts` (+20 -0) 📝 `packages/hoppscotch-cli/src/types/collections.ts` (+1 -0) 📝 `packages/hoppscotch-cli/src/types/commands.ts` (+1 -0) 📝 `packages/hoppscotch-cli/src/types/request.ts` (+7 -0) 📝 `packages/hoppscotch-cli/src/utils/collections.ts` (+14 -2) 📝 `packages/hoppscotch-cli/src/utils/getters.ts` (+5 -0) 📝 `packages/hoppscotch-cli/src/utils/request.ts` (+23 -5) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #2507 ### Description This feature introduces `-d, --delay` flag to allow providing delay (in milliseconds) between execution of consecutive requests. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] 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 01:27:08 +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#3874
No description provided.