mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3120] test: improved backend unit test cases #4239
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#4239
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/3120
Author: @mirarifhasan
Created: 6/7/2023
Status: 🔄 Open
Base:
release/2023.4.8← Head:test/backend-test-case📝 Commits (10+)
295304ftest: admin service test case addedddd0a67fix: isLeft check in admin service6c928e7test: team collection test coverage addeddb42073test: team request test coverage addedb83cc38test: user collection test coverage added76d52a3test: user request test coverage added39a4fd8test: user-history millisecond issued2ca631Merge branch 'main' into test/backend-test-caseb867ba9Merge branch 'release/2023.4.8' into test/backend-test-casea2a675dchore: fixed issues with test cases in team-environment module📊 Changes
8 files changed (+1458 additions, -26 deletions)
View changed files
📝
packages/hoppscotch-backend/src/admin/admin.service.spec.ts(+587 -0)📝
packages/hoppscotch-backend/src/admin/admin.service.ts(+1 -0)📝
packages/hoppscotch-backend/src/team-collection/team-collection.service.spec.ts(+184 -6)📝
packages/hoppscotch-backend/src/team-environments/team-environments.service.spec.ts(+2 -2)📝
packages/hoppscotch-backend/src/team-request/team-request.service.spec.ts(+90 -9)📝
packages/hoppscotch-backend/src/user-collection/user-collection.service.spec.ts(+480 -1)📝
packages/hoppscotch-backend/src/user-history/user-history.service.spec.ts(+16 -8)📝
packages/hoppscotch-backend/src/user-request/user-request.service.spec.ts(+98 -0)📄 Description
Closes HBE-203
Description
In this PR, we add a few test cases to improve our test coverage throughout
hoppscotch-backend. Unit test cases added for the following modules:How to run test cases
Just run the backend test cases, sometime you will get this issue.
Checks
Additional Information
Nil
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
text/plaincontent type #4987