Skip to content

Commit

Permalink
feat(node): add support for workspace libs when not bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo committed Feb 17, 2023
1 parent 40007a1 commit c86565b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion e2e/node/src/node-server.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {
checkFilesDoNotExist,
updateFile,
readFile,
checkFilesExist,
cleanupProject,
killPort,
Expand All @@ -11,6 +13,7 @@ import {
uniq,
updateFile,
} from '@nrwl/e2e/utils';
import { apps } from 'open';

describe('Node Applications + webpack', () => {
beforeEach(() => newProject());
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit c86565b

Please sign in to comment.