mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Merge pull request #19587 from storybookjs/tech/html-reporter-for-e2e-tests-locally
make the reporter dynamic
This commit is contained in:
commit
8d95548ac4
@ -10,8 +10,10 @@ export const e2eTests: Task = {
|
||||
return false;
|
||||
},
|
||||
async run({ codeDir, junitFilename, template }, { dryRun, debug }) {
|
||||
const reporter = process.env.CI ? 'junit' : 'html';
|
||||
|
||||
await exec(
|
||||
'yarn playwright test --reporter=junit',
|
||||
`yarn playwright test --reporter=${reporter}`,
|
||||
{
|
||||
env: {
|
||||
STORYBOOK_URL: `http://localhost:${PORT}`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user