We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce8988d commit 34e4a9fCopy full SHA for 34e4a9f
monorepo/scripts/tests/project-styles.php
@@ -11,6 +11,14 @@
11
test('can install node dependencies', function () {
12
$this->assert(! file_exists(BASE_PATH.'/node_modules'), 'Node modules already exist');
13
14
+ // Remove package-lock.json so it can be regenerated.
15
+ unlink(BASE_PATH.'/package-lock.json');
16
+
17
+ shell_exec('cd '.BASE_PATH.' && npm install');
18
19
+ $this->assert(file_exists(BASE_PATH.'/node_modules'), 'Node modules do not exist');
20
21
+ // Test can re-install dependencies.
22
shell_exec('cd '.BASE_PATH.' && npm install');
23
24
$this->assert(file_exists(BASE_PATH.'/node_modules'), 'Node modules do not exist');
0 commit comments