Skip to content

chore: Ensure mockes are always loaded so tests can run in isolation #1454

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

Merged
merged 5 commits into from
Dec 1, 2021

Conversation

npalm
Copy link
Member

@npalm npalm commented Dec 1, 2021

Problem

Test set for GH public in module runners, src/scale-runners/scale-up.test.ts cannot run in isolation. As full test suite all tests are PASSING, running a test in isolation for the set GH Public results in failures. In CI we run the full set.

Solution

Problem is that several mocks are only loaded for GHES cases, which are loaded first. Moving the mockes one level up (suite level), ensures mocks are loaded always.

@npalm npalm requested a review from PatrickMennen December 1, 2021 09:00
Copy link
Contributor

@PatrickMennen PatrickMennen left a comment

Choose a reason for hiding this comment

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

LGTM

@npalm npalm merged commit e8166b9 into develop Dec 1, 2021
@npalm npalm deleted the fix/running-test-in-isolation branch December 1, 2021 14:14
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