diff --git a/e2e/node/src/node.test.ts b/e2e/node/src/node.test.ts index d0cfbf504a47d2..da5cd143a9bc32 100644 --- a/e2e/node/src/node.test.ts +++ b/e2e/node/src/node.test.ts @@ -232,10 +232,12 @@ describe('Node Applications', () => { } }, 120000); - it('should be able to run es module applications', async () => { + it('should be able to run ESM applications', async () => { const esmapp = uniq('esmapp'); - runCLI(`generate @nrwl/node:app ${esmapp} --linter=eslint`); + runCLI( + `generate @nrwl/node:app ${esmapp} --linter=eslint --framework=none` + ); updateJson(`apps/${esmapp}/tsconfig.app.json`, (config) => { config.module = 'esnext'; config.target = 'es2020'; @@ -268,8 +270,9 @@ describe('Node Applications', () => { })` ); await runCLIAsync(`build ${esmapp}`); - const { stdout } = await runCLIAsync(`serve ${esmapp}`); - expect(stdout).toBe('Hello World!'); + await runCommandUntil(`serve ${esmapp}`, (output) => { + return output.includes('Hello World!'); + }); }, 300000); });