diff --git a/packages/playwright/src/utils/preset.ts b/packages/playwright/src/utils/preset.ts index 0d851dc955fec..84b5a8a9395b1 100644 --- a/packages/playwright/src/utils/preset.ts +++ b/packages/playwright/src/utils/preset.ts @@ -114,7 +114,7 @@ export function nxE2EPreset( } return defineConfig({ - testDir: options.testDir ?? './src', + testDir: options?.testDir ?? './src', outputDir: testResultOuputDir, /* Run tests in files in parallel */ fullyParallel: true,