forked from PalisadoesFoundation/talawa-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for 100% coverage of src/resolvers/User/posts.ts (Palisadoe…
…sFoundation#2417) * fix: issue PalisadoesFoundation#2382 by upgrading graphql version - Updated the `graphql` dependency in `package.json` from version `^16.8.1` to `^16.9.0` - Regenerated `package-lock.json` to reflect the changes in dependencies This change addresses issue PalisadoesFoundation#2382 by ensuring compatibility with the latest features and bug fixes in the `graphql` package. Closes PalisadoesFoundation#2382 * test: Add tests for 100% coverage of src/resolvers/User/posts.ts - Implemented comprehensive test cases for `posts.ts` to ensure 100% code coverage. - Added tests for various pagination arguments (`first`, `last`, `before`, `after`). - Included edge cases for no posts and invalid filters. - Verified error handling for invalid arguments and cursor values. Fixes PalisadoesFoundation#1928 * test: Add tests for 100% coverage of src/resolvers/User/posts.ts update-2 * Fix and improve User post resolver tests - Update 'handles valid cursor value' test to be more flexible - Ensure test passes with variable post order - Maintain test coverage and functionality verification
- Loading branch information
1 parent
7258cfd
commit 1f38da5
Showing
1 changed file
with
160 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters