Skip to content

Commit

Permalink
fix(core): Fix broken e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham committed Sep 27, 2024
1 parent 45b7451 commit 088086c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/next/src/next-storybook.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
);
});

Expand Down
2 changes: 1 addition & 1 deletion e2e/react-native/src/react-native-legacy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion e2e/react/src/cypress-component-tests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit 088086c

Please sign in to comment.