diff --git a/scripts/tasks/test-runner.ts b/scripts/tasks/test-runner.ts index 7a0961d8632d..9471cd6e7f70 100644 --- a/scripts/tasks/test-runner.ts +++ b/scripts/tasks/test-runner.ts @@ -21,11 +21,8 @@ export const testRunner: Task = { const storybookController = await serveSandbox(builtSandboxDir, {}); - await exec(`yarn test-storybook --url http://localhost:8001 --junit`, { + await exec(`yarn test-storybook --url http://localhost:8001 --junit ${junitFilename}`, { ...execOptions, - env: { - JEST_JUNIT_OUTPUT_FILE: junitFilename, - }, }); publishController.abort();