mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5882] Add test coverage and URI utilities for hoppscotch-data package #5393
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#5393
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/5882
Author: @amussara
Created: 2/16/2026
Status: 🔄 Open
Base:
main← Head:add-data-utils-tests-and-validation📝 Commits (1)
7f143d1feat(hoppscotch-data): add comprehensive test suite and URI utilities📊 Changes
13 files changed (+1225 additions, -11 deletions)
View changed files
📝
packages/hoppscotch-data/package.json(+5 -3)➕
packages/hoppscotch-data/src/environment/__tests__/environment.spec.ts(+280 -0)➕
packages/hoppscotch-data/src/rest/__tests__/content-types.spec.ts(+56 -0)➕
packages/hoppscotch-data/src/utils/__tests__/collection.spec.ts(+47 -0)➕
packages/hoppscotch-data/src/utils/__tests__/eq.spec.ts(+122 -0)➕
packages/hoppscotch-data/src/utils/__tests__/record.spec.ts(+78 -0)➕
packages/hoppscotch-data/src/utils/__tests__/statusCodes.spec.ts(+103 -0)➕
packages/hoppscotch-data/src/utils/__tests__/uri.spec.ts(+227 -0)➕
packages/hoppscotch-data/src/utils/uri.ts(+150 -0)📝
packages/hoppscotch-data/tsconfig.decl.json(+2 -1)📝
packages/hoppscotch-data/tsconfig.json(+2 -1)➕
packages/hoppscotch-data/vitest.config.ts(+9 -0)📝
pnpm-lock.yaml(+144 -6)📄 Description
113 tests + new URI utility module with 5 functions. Zero to full test coverage on hoppscotch-data.
Summary by cubic
Adds a URI utilities module and 113 unit tests to bring hoppscotch-data to full coverage and improve URL handling. This strengthens reliability and adds safe URL parsing/building helpers for request workflows.
New Features
Dependencies
Written for commit
7f143d1235. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.