chore(node): fix e2e tests and add implicit dependency on @nx/webpack (#20137)

This commit is contained in:
Jack Hsu 2023-11-08 16:10:29 -05:00 committed by GitHub
parent e6445c0063
commit 80ec78a412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,5 +6,5 @@
"targets": { "targets": {
"e2e": {} "e2e": {}
}, },
"implicitDependencies": ["node", "nest"] "implicitDependencies": ["node", "nest", "webpack"]
} }

View File

@ -52,7 +52,7 @@ describe('Node Applications + webpack', () => {
await runCLIAsync(`build ${app} --optimization`); await runCLIAsync(`build ${app} --optimization`);
const optimizedContent = readFile(`dist/apps/${app}/main.js`); const optimizedContent = readFile(`dist/apps/${app}/main.js`);
expect(optimizedContent).toContain('console.log("foo "+"bar")'); expect(optimizedContent).toContain('console.log("foo bar")');
// Test that serve can re-run dependency builds. // Test that serve can re-run dependency builds.
const lib = uniq('nodelib'); const lib = uniq('nodelib');