chore(node): fix e2e tests and add implicit dependency on @nx/webpack (#20137)
This commit is contained in:
parent
e6445c0063
commit
80ec78a412
@ -6,5 +6,5 @@
|
|||||||
"targets": {
|
"targets": {
|
||||||
"e2e": {}
|
"e2e": {}
|
||||||
},
|
},
|
||||||
"implicitDependencies": ["node", "nest"]
|
"implicitDependencies": ["node", "nest", "webpack"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user