From c86565b7024a96c44dd57e3426f6c6a65b13fdac Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Thu, 16 Feb 2023 09:55:15 -0500 Subject: [PATCH] feat(node): add support for workspace libs when not bundling --- e2e/node/src/node-server.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e2e/node/src/node-server.test.ts b/e2e/node/src/node-server.test.ts index 1746945678d7de..fd824d7d1b18a8 100644 --- a/e2e/node/src/node-server.test.ts +++ b/e2e/node/src/node-server.test.ts @@ -1,5 +1,7 @@ import { checkFilesDoNotExist, + updateFile, + readFile, checkFilesExist, cleanupProject, killPort, @@ -11,6 +13,7 @@ import { uniq, updateFile, } from '@nrwl/e2e/utils'; +import { apps } from 'open'; describe('Node Applications + webpack', () => { beforeEach(() => newProject()); @@ -76,10 +79,12 @@ describe('Node Applications + webpack', () => { // Only Fastify generates with unit tests since it supports them without additional libraries. expect(() => runCLI(`lint ${fastifyApp}`)).not.toThrow(); + addLibImport(fastifyApp, utilLib); + await runE2eTests(expressApp); await runE2eTests(fastifyApp); await runE2eTests(koaApp); - }, 300_000); + }, 480_000); it('should generate a Dockerfile', async () => { const expressApp = uniq('expressapp');