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

Chore/create test boilerplate for events #8236

Merged
merged 13 commits into from
Dec 18, 2024

Conversation

makelicious
Copy link
Collaborator

  • Create test generators
  • Create structure and tests for router testing
  • Fix missing payload validations

Copy link

Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:

  • Changelog is read by country implementors who might not always be familiar with all technical details of OpenCRVS. Keep language high-level, user friendly and avoid technical references to internals.
  • Answer "What's new?", "Why was the change made?" and "Why should I care?" for each change.
  • If it's a breaking change, include a migration guide answering "What do I need to do to upgrade?".

@makelicious makelicious force-pushed the chrore/create-test-boilerplate-for-events branch from 1905d95 to 112b049 Compare December 17, 2024 15:19
})

test('Returns multiple events', async () => {
for await (const _ of Array(10).keys()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for await (const _ of Array(10).keys()) {
for (let i = 0; i < 10; i++) {

const esClient = getOrCreateClient()

await indexAllEvents()

for await (const _ of Array(2).keys()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for await (const _ of Array(2).keys()) {
for (let i = 0; i < 2; i++) {

@makelicious makelicious merged commit 37b84cc into develop Dec 18, 2024
31 of 32 checks passed
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.

2 participants