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: fix async tests resolved in random order #6143

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

Sometimes the docs tests are not resolved in the correct order, resulting in the snapshots being updated randomly. This is because we didn't await our expect call. I normalized these async tests to the right format.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

It seems jest tests always succeed on the CI though, I wonder if it's because of some niceties of the GH Actions node...

@Josh-Cena Josh-Cena added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Dec 21, 2021
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 21, 2021
@netlify
Copy link

netlify bot commented Dec 21, 2021

✔️ [V2]

🔨 Explore the source changes: 6adfcd6

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61c1adb7b5d0ea0008c40234

😎 Browse the preview: https://deploy-preview-6143--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 92
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-6143--docusaurus-2.netlify.app/

@github-actions
Copy link

Size Change: 0 B

Total Size: 658 kB

ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 39.3 kB
website/build/assets/css/styles.********.css 101 kB
website/build/assets/js/main.********.js 488 kB
website/build/index.html 29.6 kB

compressed-size-action

@Josh-Cena Josh-Cena merged commit 2872924 into main Dec 21, 2021
@Josh-Cena Josh-Cena deleted the jc/async-test branch December 21, 2021 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants