Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: src/graphql/types/Chat/updatedAt.ts #3080

Open
abbi4code opened this issue Jan 27, 2025 · 3 comments
Open

Test: src/graphql/types/Chat/updatedAt.ts #3080

abbi4code opened this issue Jan 27, 2025 · 3 comments
Assignees
Labels
test Testing application

Comments

@abbi4code
Copy link

Goal

The goal of this issue is to improve the code coverage for the file: `src/graphql/types/Chat/updatedAt.ts

Tasks

  1. Review the file to identify sections of code that are being ignored by Codecov or are not covered by tests.
  2. Create or update test cases to ensure 100% coverage for the file.
  3. Remove any /* istanbul ignore */ or equivalent statements that bypass code coverage reporting, unless absolutely necessary.

Resources

  • Refer to the foundational documentation on writing test cases in the repository.
  • Check the Codecov report for details on the uncovered lines.

Acceptance Criteria

  • All sections of the file are covered by tests.
  • Code coverage for the file reaches 100%.
  • PR created with necessary updates, passing all checks and reviews.

Parent Issue - #2920

Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship

@github-actions github-actions bot added documentation Improvements or additions to documentation parent Parent issue test Testing application unapproved Unapproved for Pull Request labels Jan 27, 2025
@palisadoes palisadoes removed documentation Improvements or additions to documentation parent Parent issue labels Jan 28, 2025
@amaan-aly246
Copy link

Please assign this issue.
The issues I’ve been assigned cannot be progressed due to some issues in talawa-admin, so I’ve been permitted to take on a new one (even though the two-issue limit has been exceeded).
Thanks

@palisadoes palisadoes removed the unapproved Unapproved for Pull Request label Feb 1, 2025
@amaan-aly246
Copy link

amaan-aly246 commented Feb 5, 2025

@palisadoes Hi, I'm writing tests for src/graphql/types/Chat/updatedAt.ts and have made some changes to the updatedAt.ts file. However, I'm facing issues defining the correct types for the context parameter in the resolver function. No matter how many times I try, I keep running into errors.

I can write the tests myself, but I need help with the types. Could you please look into the file and provide the correct types code for the context parameter?

I can share you file on slack DM or can I post in this issue comments itself.
Apologies for the inconvenience.

@palisadoes
Copy link
Contributor

Please ask the #talawa-api slack channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Testing application
Projects
Status: Backlog
Development

No branches or pull requests

3 participants