[PR #2735] [CLOSED] feat: updated js-sandbox and scripting revamp RFC implementation #4035

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2735
Author: @aitchnyu
Created: 10/3/2022
Status: Closed

Base: mainHead: refactor/js-sandbox


📝 Commits (10+)

  • 8c339be refactor: updated js-sandbox with new quickjs apis
  • 49d604e feat: added artifact api
  • 12fc3b1 feat: added new api defining functions
  • 55c0730 refactor: updated and refactored apis structure
  • 1873058 chore: updated package.json
  • cf9b2bf test: added tests for artifacts api
  • 59a6912 refactor: updated pre-request & test-script runners and realted tests
  • 392f103 refactor: updated hoppscotch-app's related to type changes in pre-request and test-script runners
  • bc485d4 refactor: updated with artifact type
  • 6295afe refactor: updated clone/lodash to cloneDeep/lodash

📊 Changes

44 files changed (+3241 additions, -916 deletions)

View changed files

📝 packages/hoppscotch-app/helpers/RequestRunner.ts (+3 -3)
📝 packages/hoppscotch-app/helpers/preRequest.ts (+1 -1)
📝 packages/hoppscotch-js-sandbox/package.json (+2 -1)
📝 packages/hoppscotch-js-sandbox/src/__tests__/preRequest.spec.ts (+30 -17)
packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/create.spec.ts (+91 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/delete.spec.ts (+59 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/get.spec.ts (+67 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/update.spec.ts (+71 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/debug.spec.ts (+58 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/error.spec.ts (+58 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/log.spec.ts (+58 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/warn.spec.ts (+58 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/active/get.spec.ts (+219 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/delete.spec.ts (+150 -0)
📝 packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/get.spec.ts (+61 -16)
packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/getRaw.spec.ts (+185 -0)
📝 packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/getResolve.spec.ts (+20 -17)
packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/global/get.spec.ts (+219 -0)
📝 packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/resolve.spec.ts (+16 -12)
📝 packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/set.spec.ts (+18 -13)

...and 24 more files

📄 Description

🤖 Generated by Copilot at b7a0f9a

This pull request enhances the test script feature of the app by refactoring the code, adding new APIs, and improving the test script report. It also updates some dependencies and renames some files for clarity.


🔄 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/2735 **Author:** [@aitchnyu](https://github.com/aitchnyu) **Created:** 10/3/2022 **Status:** ❌ Closed **Base:** `main` ← **Head:** `refactor/js-sandbox` --- ### 📝 Commits (10+) - [`8c339be`](https://github.com/hoppscotch/hoppscotch/commit/8c339beb9dfba3cfca7cc094e9c0475de24d72a9) refactor: updated js-sandbox with new quickjs apis - [`49d604e`](https://github.com/hoppscotch/hoppscotch/commit/49d604e0997e71e9c15311a2a7e82e80b84ead81) feat: added artifact api - [`12fc3b1`](https://github.com/hoppscotch/hoppscotch/commit/12fc3b1f10d593237a572fa5a5f3423b3bd66fb5) feat: added new api defining functions - [`55c0730`](https://github.com/hoppscotch/hoppscotch/commit/55c073026387ca6fd39cc67d5ecbeb9217d150bc) refactor: updated and refactored apis structure - [`1873058`](https://github.com/hoppscotch/hoppscotch/commit/1873058e5a3ab0c5fb5dc0bf881344dfa4634fff) chore: updated package.json - [`cf9b2bf`](https://github.com/hoppscotch/hoppscotch/commit/cf9b2bfcf86138d82a8773dd3c13a19c586c07a1) test: added tests for artifacts api - [`59a6912`](https://github.com/hoppscotch/hoppscotch/commit/59a69127c240217c8768405de53f3db42925e5e0) refactor: updated pre-request & test-script runners and realted tests - [`392f103`](https://github.com/hoppscotch/hoppscotch/commit/392f10322fc48ced395fa12e3446d576957fdcf4) refactor: updated hoppscotch-app's related to type changes in pre-request and test-script runners - [`bc485d4`](https://github.com/hoppscotch/hoppscotch/commit/bc485d43c18a83a8e7536f7ce664a3775c88dae5) refactor: updated with artifact type - [`6295afe`](https://github.com/hoppscotch/hoppscotch/commit/6295afe26aa6bae3723dfcde884df2b600827fe6) refactor: updated clone/lodash to cloneDeep/lodash ### 📊 Changes **44 files changed** (+3241 additions, -916 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/helpers/RequestRunner.ts` (+3 -3) 📝 `packages/hoppscotch-app/helpers/preRequest.ts` (+1 -1) 📝 `packages/hoppscotch-js-sandbox/package.json` (+2 -1) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/preRequest.spec.ts` (+30 -17) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/create.spec.ts` (+91 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/delete.spec.ts` (+59 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/get.spec.ts` (+67 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/artifacts/update.spec.ts` (+71 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/debug.spec.ts` (+58 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/error.spec.ts` (+58 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/log.spec.ts` (+58 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/consoles/warn.spec.ts` (+58 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/active/get.spec.ts` (+219 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/delete.spec.ts` (+150 -0) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/get.spec.ts` (+61 -16) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/getRaw.spec.ts` (+185 -0) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/getResolve.spec.ts` (+20 -17) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/global/get.spec.ts` (+219 -0) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/resolve.spec.ts` (+16 -12) 📝 `packages/hoppscotch-js-sandbox/src/__tests__/testing/envs/set.spec.ts` (+18 -13) _...and 24 more files_ </details> ### 📄 Description <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at b7a0f9a</samp> This pull request enhances the test script feature of the app by refactoring the code, adding new APIs, and improving the test script report. It also updates some dependencies and renames some files for clarity. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:35:54 +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#4035
No description provided.