We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b983a commit 8abb002Copy full SHA for 8abb002
tools/pfe-tools/test/playwright/SSRPage.ts
@@ -91,7 +91,7 @@ export class SSRPage {
91
}
92
const { address = 'localhost', port = 0 } = this.server.address() as AddressInfo;
93
this.host ??= `http://${address.replace('::', 'localhost')}:${port}/`;
94
- this.demoPaths ??= (await readdir(this.config.demoDir))
+ this.demoPaths ??= !this.config.demoDir ? [] : (await readdir(this.config.demoDir))
95
.filter(x => x.endsWith('.html'))
96
.map(x => new URL(x, this.host).href);
97
0 commit comments