Skip to content

Commit

Permalink
Merge pull request #57 from pasindu07/php-8.3-ubuntu-24.04
Browse files Browse the repository at this point in the history
Updated nvm directory in unit tests
  • Loading branch information
ChanakaR authored Dec 31, 2024
2 parents 2fbc3a7 + 91b975b commit 09f9e87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/WebContainerCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ public function checkNanoInstallation(UnitTester $I){

public function checkNodeVersion(UnitTester $I){
$I->wantTo("verify node v6 is installed in the container");
$I->runShellCommand('docker exec dev_web bash -c \'export NVM_DIR="/usr/local/nvm"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; node -v\' ');
$I->runShellCommand('docker exec dev_web bash -c \'export NVM_DIR="/root/.nvm"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; node -v\' ');
$I->seeInShellOutput('v6.17.1');
}

public function checkNPMVersion(UnitTester $I){
$I->wantTo("verify npm is installed in the container");
$I->runShellCommand('docker exec dev_web bash -c \'export NVM_DIR="/usr/local/nvm"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; npm -v\' ');
$I->runShellCommand('docker exec dev_web bash -c \'export NVM_DIR="/root/.nvm"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; npm -v\' ');
$I->seeInShellOutput("3.10.10");
}

Expand All @@ -100,7 +100,7 @@ public function checkOslonDBInstallation(UnitTester $I){

public function checkBowerVersion(UnitTester $I){
$I->wantTo("verify bower is installed in the container");
$I->runShellCommand('docker exec dev_web bash -c \'export NVM_DIR="/usr/local/nvm"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; bower -v\' ');
$I->runShellCommand('docker exec dev_web bash -c \'export NVM_DIR="/root/.nvm"; [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; bower -v\' ');
$I->seeInShellOutput('1');
}

Expand Down

0 comments on commit 09f9e87

Please sign in to comment.