-
Notifications
You must be signed in to change notification settings - Fork 0
fix: test rstest examples when run rslib / rsbuild eco-ci #24
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ export async function test(options: RunOptions) { | |
| ...options, | ||
| repo: 'web-infra-dev/rstest', | ||
| branch: process.env.RSTEST ?? 'main', | ||
| test: ['test'], | ||
| test: ['test', 'test:examples'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding the To ensure consistency and prevent potential failures, please consider updating the // tests/rslib/rstest.ts:10-12
beforeTest: async () => {
await $`pnpm exec playwright install chromium webkit --with-deps`;
}, |
||
| beforeTest: async () => { | ||
| await $`pnpm exec playwright install chromium --with-deps`; | ||
| }, | ||
|
|
||
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.
Adding the
test:examplesscript likely requireswebkitto be installed for Playwright, as is done intests/rspack/rstest.ts. ThebeforeTesthook on line 12 only installschromium, which may causetest:examplesto fail.To ensure consistency and prevent potential failures, please consider updating the
beforeTesthook to also installwebkit: