Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/rsbuild/rstest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function test(options: RunOptions) {
repo: 'web-infra-dev/rstest',
branch: process.env.RSTEST ?? 'main',
// ignore snapshot changes
test: ['test -u'],
test: ['test -u', 'test:examples'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Adding the test:examples script likely requires webkit to be installed for Playwright, as is done in tests/rspack/rstest.ts. The beforeTest hook on line 12 only installs chromium, which may cause test:examples to fail.

To ensure consistency and prevent potential failures, please consider updating the beforeTest hook to also install webkit:

// tests/rsbuild/rstest.ts:11-13
beforeTest: async () => {
  await $`pnpm exec playwright install chromium webkit --with-deps`;
},

beforeTest: async () => {
await $`pnpm exec playwright install chromium --with-deps`;
},
Expand Down
2 changes: 1 addition & 1 deletion tests/rslib/rstest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Adding the test:examples script likely requires webkit to be installed for Playwright, as is done in tests/rspack/rstest.ts. The beforeTest hook on line 11 only installs chromium, which may cause test:examples to fail.

To ensure consistency and prevent potential failures, please consider updating the beforeTest hook to also install webkit:

// 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`;
},
Expand Down
Loading