Skip to content

Commit

Permalink
Adjust tests that wrongfully use React as specified in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 4, 2024
1 parent 827fabf commit 98eb4ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/yarn-pnp/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export function runTests(
const srcFiles = await fs.readdir(srcDir)

const packageJson = await fs.readJson(join(srcDir, 'package.json'))
// Use the default versions that are usually used in tests.
// Since we replace `next` in the install, we also need to fulfill the peerDependencies.
// However, the example specified latest next which may have different peerDependencies that the next that we test here i.e. the next on this commit.
delete packageJson.dependencies['react']
delete packageJson.dependencies['react-dom']

next = await createNext({
files: srcFiles.reduce(
Expand Down

0 comments on commit 98eb4ed

Please sign in to comment.