Skip to content

Commit

Permalink
Merge pull request #19587 from storybookjs/tech/html-reporter-for-e2e…
Browse files Browse the repository at this point in the history
…-tests-locally

make the reporter dynamic
  • Loading branch information
ndelangen authored Oct 23, 2022
2 parents 31c93aa + 35692db commit 8d95548
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/tasks/e2e-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 8d95548

Please sign in to comment.