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

fix(oas:test): Augment jest timeout from 30 to 60 sec #3631

Merged
merged 3 commits into from
Mar 30, 2023

Conversation

patrick-medusajs
Copy link
Contributor

@patrick-medusajs patrick-medusajs commented Mar 29, 2023

What

Fix flaky test in CI by augmenting jest timeout config from 30 seconds to 60 seconds.

How

With our current version of jest, timeouts and errors thrown in beforeAll with async are swallowed. Failure in beforeAll execution won't prevent the rest of the test suite to run, which will fail in unexpected ways. Until we upgrade jest from version 25 to something like 29, issues surrounding beforeAll will remain difficult to troubleshoot.

@patrick-medusajs patrick-medusajs self-assigned this Mar 29, 2023
@changeset-bot
Copy link

changeset-bot bot commented Mar 29, 2023

🦋 Changeset detected

Latest commit: 99af01e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@medusajs/medusa-oas-cli Patch
@medusajs/oas-github-ci Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Mar 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
medusa-docs ⬜️ Ignored (Inspect) Mar 30, 2023 at 1:14AM (UTC)

@patrick-medusajs patrick-medusajs marked this pull request as ready for review March 30, 2023 01:21
@patrick-medusajs patrick-medusajs requested a review from a team as a code owner March 30, 2023 01:21
@olivermrbl olivermrbl changed the title fix(oas:test): adding logs to test suite fix(oas:test): Augment jest timeout from 30 to 60 sec Mar 30, 2023
@olivermrbl olivermrbl merged commit 377b9ce into develop Mar 30, 2023
@olivermrbl olivermrbl deleted the fix/oas-flaky-test branch March 30, 2023 07:17
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