Skip to content

Commit ad700cf

Browse files
configure playwright
1 parent 98c4774 commit ad700cf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/test-isolated.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ jobs:
5252
- name: Install
5353
run: pnpm install
5454

55-
- name: Configure Playwright
56-
run: |
57-
pnpm exec playwright install-deps
58-
pnpm exec playwright install
59-
6055
- name: Build Packages
6156
run: pnpm build:packages
6257

demos/example-vite/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"start": "pnpm build && pnpm preview",
1111
"test": "vitest run",
1212
"test:watch": "vitest",
13+
"prepare:isolated:test": "pnpm exec playwright install ",
1314
"test:build": "pnpm build && pnpm test"
1415
},
1516
"dependencies": {

scripts/isolated-demo-test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ const processDemo = async (demoName: string): Promise<DemoResult> => {
123123
}
124124

125125
try {
126+
if (pkg.scripts['prepare:isolated:test']) {
127+
execSync('pnpm run prepare:isolated:test', { cwd: demoDest, stdio: 'inherit' });
128+
}
129+
126130
execSync('pnpm run test:build', { cwd: demoDest, stdio: 'inherit' });
127131
result.buildResult.state = TestState.PASSED;
128132
} catch (ex) {

0 commit comments

Comments
 (0)