mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5450] test(cli): stabilize async test assertions with proper await #5214
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#5214
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/5450
Author: @Golenspade
Created: 10/5/2025
Status: 🔄 Open
Base:
main← Head:test/cli-vitest-stabilize📝 Commits (1)
6ca093etest(cli): add missing await to async test assertions📊 Changes
1 file changed (+6 additions, -6 deletions)
View changed files
📝
packages/hoppscotch-cli/src/__tests__/unit/getters.spec.ts(+6 -6)📄 Description
Summary
Fixes missing
awaitkeywords in async test assertions that were causing Vitest warnings and would fail in Vitest 3.Changes
asynckeyword to test callbacks ingetters.spec.tsawaittoexpect().rejectsassertionstest.each()callback to be asyncFixed Warnings
Promise returned by expect().rejects was not awaitedTesting
pnpm --filter @hoppscotch/cli testpasses without warningsRelated
Note: This PR focuses only on fixing async/await issues. The one existing test failure (
coll-v2-req-v2) is a separate functional issue, not related to these test infrastructure improvements.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.