mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4518] [MERGED] fix(cli): use os-specific invalid paths for tests #4845
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#4845
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/4518
Author: @CuriousCorrelation
Created: 11/7/2024
Status: ✅ Merged
Merged: 11/7/2024
Merged by: @jamesgeorge007
Base:
patch← Head:cli/fix/parsing-err-msg📝 Commits (1)
7cbf644fix(cli): use os-specific invalid paths for tests📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
packages/hoppscotch-cli/src/__tests__/e2e/commands/test.spec.ts(+5 -1)📄 Description
CLI test failing on trying to test for invalid paths
Initial Issue:
Test is for the CLI tool to verify how it behaves when attempting to export a report to an invalid path.
But, when running the test on Windows, it failed to pass the assertions in the test, even though the error output was as expected.
The Test:
What Went Wrong:
stderr, but Windows returned something different instderr-ENOENTThe Solution:
Z:would be an invalid drive letter (unless the drive is manually mapped, which it usually isn't)./is the root path.Closes HFE-647
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.