Skip to content

Commit 4e454ff

Browse files
authored
test: force install of peer deps on nestjs test app (#3269)
1 parent 2712c94 commit 4e454ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/versioned/nestjs/setup.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ async function initNestApp() {
2222
// out so badly that they can't clean up.
2323
await deleteNestApp()
2424
}
25-
await exec('npx nest new --package-manager npm --skip-git test-app')
25+
// skip install of deps because we will install them later to force peer dep failures on nest 10.x
26+
await exec('npx nest new --package-manager npm --skip-git --skip-install test-app')
27+
// on versions of nest 10.x peer dep issues exist, ignore them and force install
28+
await exec('npm install --prefix test-app --force', { cwd: __dirname })
2629
// We patch the default Nest app with some of our own functions.
2730
for (const fname of ['main.ts', 'app.controller.ts']) {
2831
await fsPromises.copyFile(`${PATCH_DIR}/${fname}`, `${APP_DIR}/src/${fname}`)

0 commit comments

Comments
 (0)