mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #2300] [MERGED] chore: tests for hoppscotch-cli #3717
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#3717
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/2300
Author: @devblin
Created: 4/29/2022
Status: ✅ Merged
Merged: 5/11/2022
Merged by: @AndrewBastin
Base:
main← Head:tests/hopp-cli📝 Commits (9)
fbc11a4test: updated hopp cli testsa0f723btest: refactor 'test' cmd tests & add tests for some functionsbc061f5test: added tests for requestRunner & updated test cmd in package.json61e9e89test: updated hopp cli bin path in commands testing24c64dbtest: updated test commandf2c16cetest: added tests for some utils functions31d68c8fix: pnpm-lock.yaml file1b86377chore: bumped CLI dependencies2c7366ffix: add type definitions to fix test execution📊 Changes
30 files changed (+1901 additions, -137 deletions)
View changed files
➕
packages/hoppscotch-cli/jest.config.ts(+193 -0)➕
packages/hoppscotch-cli/jest.setup.ts(+1 -0)📝
packages/hoppscotch-cli/package.json(+13 -5)➕
packages/hoppscotch-cli/src/__tests__/commands/test.spec.ts(+64 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/checks/checkFilePath.spec.ts(+26 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/checks/isHoppCLIError.spec.ts(+19 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/checks/isHoppErrnoException.spec.ts(+19 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/checks/isRESTCollection.spec.ts(+84 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/collection/collectionsRunner.spec.ts(+116 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/collection/collectionsRunnerResult.spec.ts(+35 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/getters/getDurationInSeconds.spec.ts(+24 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/getters/getEffectiveFinalMetaData.spec.ts(+42 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/mutators/parseCollectionData.spec.ts(+36 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/pre-request/getEffectiveRESTRequest.spec.ts(+148 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/pre-request/getPreRequestMetrics.spec.ts(+24 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/pre-request/preRequestScriptRunner.spec.ts(+71 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/request/getRequestMetrics.spec.ts(+24 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/request/processRequest.spec.ts(+104 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/request/requestRunner.spec.ts(+111 -0)➕
packages/hoppscotch-cli/src/__tests__/functions/test/getTestMetrics.spec.ts(+55 -0)...and 10 more files
📄 Description
Description
Added tests for hoppscotch-cli including:
hopp testcommand.utilsfunctions.Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.