diff --git a/e2e/react/src/react-rsbuild.test.ts b/e2e/react/src/react-rsbuild.test.ts index 5770e450fd0d3..22f39be4976a5 100644 --- a/e2e/react/src/react-rsbuild.test.ts +++ b/e2e/react/src/react-rsbuild.test.ts @@ -4,6 +4,7 @@ import { newProject, runCLI, runCLIAsync, + runE2ETests, uniq, } from '@nx/e2e/utils'; @@ -98,5 +99,12 @@ describe('Build React applications and libraries with Rsbuild', () => { await runCLIAsync(`build ${rsbuildApp}`); checkFilesExist(`apps/${rsbuildApp}/dist/index.html`); + + if (runE2ETests()) { + const result = runCLI(`e2e ${rsbuildApp}-e2e --verbose`); + expect(result).toContain( + `Successfully ran target e2e for project ${rsbuildApp}-e2e` + ); + } }, 300_000); });