Skip to content

Commit 8abb002

Browse files
committed
fix(core): don't load demodir for demoContent ssr tests
1 parent 85b983a commit 8abb002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pfe-tools/test/playwright/SSRPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class SSRPage {
9191
}
9292
const { address = 'localhost', port = 0 } = this.server.address() as AddressInfo;
9393
this.host ??= `http://${address.replace('::', 'localhost')}:${port}/`;
94-
this.demoPaths ??= (await readdir(this.config.demoDir))
94+
this.demoPaths ??= !this.config.demoDir ? [] : (await readdir(this.config.demoDir))
9595
.filter(x => x.endsWith('.html'))
9696
.map(x => new URL(x, this.host).href);
9797
}

0 commit comments

Comments
 (0)