Skip to content

Commit 54b5507

Browse files
committed
Adapt smoke tests to Yarn 4.x
1 parent 5520cdc commit 54b5507

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/smoke/.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
enableHardenedMode: false

tests/smoke/prepare.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ const preparePackageJson = reactVersion => () => {
4646
path.join(__dirname, 'package.json'),
4747
JSON.stringify(packageJson, null, 2)
4848
);
49+
50+
fs.writeFileSync(path.join(__dirname, 'yarn.lock'), '');
4951
};
5052

5153
const installDependencies = () => () =>
@@ -54,7 +56,7 @@ const installDependencies = () => () =>
5456
return;
5557
}
5658

57-
execSync('yarn install --no-lockfile', {
59+
execSync('yarn install', {
5860
cwd: __dirname,
5961
stdio: 'inherit',
6062
});

0 commit comments

Comments
 (0)