diff --git a/e2e/next/src/next-storybook.test.ts b/e2e/next/src/next-storybook.test.ts index 5eef599acfc17c..15ab50ad171483 100644 --- a/e2e/next/src/next-storybook.test.ts +++ b/e2e/next/src/next-storybook.test.ts @@ -18,7 +18,7 @@ describe('Next.js Storybook', () => { `generate @nx/next:app ${appName} --e2eTestRunner=none --project-name-and-root-format=as-provided --no-interactive` ); runCLI( - `generate @nx/next:component foo --directory=${appName}/components/foo --nameAndDirectoryFormat=as-provided --no-interactive` + `generate @nx/next:component ${appName}/components/foo/foo --no-interactive` ); }); diff --git a/e2e/react-native/src/react-native-legacy.test.ts b/e2e/react-native/src/react-native-legacy.test.ts index 13398ba8f9c323..a063609752d5c0 100644 --- a/e2e/react-native/src/react-native-legacy.test.ts +++ b/e2e/react-native/src/react-native-legacy.test.ts @@ -189,7 +189,7 @@ describe('@nx/react-native (legacy)', () => { const componentName = uniq('Component'); runCLI( - `generate @nx/react-native:component ${componentName} --directory=libs/${libName}/src/lib/${componentName} --export` + `generate @nx/react-native:component libs/${libName}/src/lib/${componentName}/${componentName} --export` ); expect(() => { runCLI(`build ${libName}`); diff --git a/e2e/react/src/cypress-component-tests.test.ts b/e2e/react/src/cypress-component-tests.test.ts index a4f97543352930..22d46e96d7c565 100644 --- a/e2e/react/src/cypress-component-tests.test.ts +++ b/e2e/react/src/cypress-component-tests.test.ts @@ -111,7 +111,7 @@ export default App;` `generate @nx/react:lib ${buildableLibName} --directory=libs/${buildableLibName} --buildable --no-interactive --unitTestRunner=jest` ); runCLI( - `generate @nx/react:component input --directory=libs/${buildableLibName}/src/lib/input --export --no-interactive` + `generate @nx/react:component libs/${buildableLibName}/src/lib/input/input --export --no-interactive` ); checkFilesExist(`libs/${buildableLibName}/src/lib/input/input.tsx`);