-
Notifications
You must be signed in to change notification settings - Fork 98
test: fix 'after' fixture next version range #3324
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
📊 Package size report No changes
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
| "test": { | ||
| "dependencies": { | ||
| "next": "15.1.11" | ||
| "next": ">=15.1.0" | ||
| } | ||
| } | ||
| } |
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.
This defines when RESOLVED_NEXT_VERSION will be used to install version that is different in package.json#depencies.next - because of the pinning this was never satisfied, so it was always installing latest which requires node@20 and cause just build errors when testing v15 (15.5.9).
This is meant to mimic range used in test themselves - in particular here it needs to match
opennextjs-netlify/tests/e2e/after.test.ts
Lines 5 to 6 in fb87ac7
| // This test is only for Next.js >=15.1.0 that has stable after() support | |
| if (nextVersionSatisfies('>=15.1.0')) { |
3dd167f to
dda370b
Compare
| 'after', | ||
| 'cli-before-regional-blobs-support', | ||
| 'dist-dir', | ||
| 'dynamic-cms', |
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 related, but noticed we do prepare this fixture for integration tests, but we only use them in e2e - so prebuilding is not needed (and might safe some disk usage which has some problems now)
Description
The pinning of version in fixture's
package.json#test.dependencies.nextresults in attempt to uselatestwhen running against 15.5.9, which will never allow the fixture the build, because it requeires node@20 for next@16, while node@18 is used for tests targeted at versions below 16Note: there are known ENOSPC problems in test setup - this PR intentionally is not trying to address those (there was early attempt, but it was not succesful, so to not keep changes from this PR hostage on that - this only do simple fixes/adjustments and ENOSPC will have separate PR most likely)