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

feat: tests for modules #14

Conversation

gentlementlegen
Copy link
Member

Depends on #12

tests/process.issue.test.ts Outdated Show resolved Hide resolved
@gentlementlegen
Copy link
Member Author

@gentlementlegen gentlementlegen marked this pull request as ready for review April 25, 2024 15:46
@gentlementlegen
Copy link
Member Author

gentlementlegen commented Apr 25, 2024

Apologies for the PR spam.

This aims to cover as much as possible with tests. It also solves many bugs encountered while testing, such as ignoring or including comments from pull requests that were not related, or on the contrary to ignore comments that should be part of the final result.

All the API is mocked, because if anyone would happen to add or delete a comment it would break all the tests. It also allows for fine grained testing for edge cases.

PR looks big again, but mostly contains mocked API results.

Last run: https://github.com/Meniole/test/issues/1#issuecomment-2077704327

src/data-collection/collect-linked-pulls.ts Outdated Show resolved Hide resolved
src/parser/data-purge-module.ts Show resolved Hide resolved
src/parser/data-purge-module.ts Outdated Show resolved Hide resolved
@gentlementlegen gentlementlegen merged commit a43b17d into ubiquity-os-marketplace:development May 5, 2024
2 of 3 checks passed
@gentlementlegen gentlementlegen deleted the feat/testing branch May 5, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants