Skip to content

Commit 618b1ae

Browse files
committed
fix(rslib): install playwright
1 parent 5feca42 commit 618b1ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/rslib/rspress.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import type { RunOptions } from '../../types';
2-
import { runInRepo } from '../../utils';
2+
import { $, runInRepo } from '../../utils';
33

44
export async function test(options: RunOptions) {
55
await runInRepo({
66
...options,
77
repo: 'web-infra-dev/rspress',
88
branch: process.env.RSPRESS ?? 'main',
9+
beforeTest: async () => {
10+
await $`pnpm playwright install --with-deps`;
11+
},
912
test: ['test'],
1013
});
1114
}

0 commit comments

Comments
 (0)