Skip to content

Commit ffec080

Browse files
authored
test: fix canary integration tests (#484)
* test: allow older react for canary * test: allow older react for canary 2
1 parent 5303726 commit ffec080

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/prepare.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const promises = fixtures.map((fixture) =>
4545
}
4646

4747
// npm is the default
48-
let cmd = `npm install --no-audit --progress=false --prefer-offline `
48+
let cmd = `npm install --no-audit --progress=false --prefer-offline --legacy-peer-deps`
4949
const { packageManager } = JSON.parse(await readFile(join(cwd, 'package.json'), 'utf8'))
5050
if (packageManager?.startsWith('pnpm')) {
5151
// We disable frozen-lockfile because we may have changed the version of Next.js

tests/utils/fixture.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ async function installDependencies(cwd: string) {
4444
cwd,
4545
})
4646
}
47-
return execaCommand(`npm install --ignore-scripts --no-audit --progress=false`, { cwd })
47+
return execaCommand(
48+
`npm install --ignore-scripts --no-audit --progress=false --legacy-peer-deps`,
49+
{ cwd },
50+
)
4851
}
4952

5053
export const getFixtureSourceDirectory = (fixture: string) =>

0 commit comments

Comments
 (0)