Skip to content

Commit cc318f8

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)