-
Notifications
You must be signed in to change notification settings - Fork 86
test: update test setup for stable after() #2722
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
Conversation
a0ec10c
to
9c0bdfc
Compare
📊 Package size report No changes
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
const response = await page.goto(`${after.url}/after/trigger`) | ||
|
||
expect(response?.status(), 'Trigger should return 200').toBe(200) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In main
this results in 50x status (due to no longer existing export) - the test failed which is good, but assertion errors didn't show much details other than things not working
This added assertion is just to have more context about potential future failures
@@ -85,7 +85,7 @@ export async function setNextVersionInFixture( | |||
if ( | |||
operation === 'update' && | |||
versionConstraint && | |||
!satisfies(checkVersion, versionConstraint) && | |||
!satisfies(checkVersion, versionConstraint, { includePrerelease: true }) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed for this PR, but I noticed that after
fixture building was skipped in canary test run which should not happen (we don't have integration test using that fixture, so it wasn't impacting test results - this is just fixing this for the future)
Description
Our tests failed last run with underlying reason being:
unstable_after
import is no longer available, so this updates test setup to use stableafter
(and bumps version constraint)Documentation
Tests
Existing test updated
Relevant links (GitHub issues, etc.) or a picture of cute animal