Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
dualcnhq committed Jun 4, 2024
1 parent 4357584 commit 2aa31a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion executeTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ function runTest(category = 'all', headed = false, browser = 'chromium') {
try {
console.log(`Executing command: ${command}`);
const output = execSync(command, { stdio: 'inherit' });
console.log(output.toString());
if (output !== null) {
console.log(output.toString());
}
} catch (error) {
console.log('error: ', error);
console.error(error.stderr ? error.stderr.toString() : error.toString());
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const test = base.extend<PageFixtures>({

test.beforeEach(async ({ request }) => {
// add config to check what_host node the test is connecting at
// update the .env file to enable/disable it
// update the .env file to enable/disable it
if (process.env.WHAT_HOST === 'true') {
const whathost = await request.get('/services/whathost.php');
console.log('whathost: ', await whathost.text());
Expand Down

0 comments on commit 2aa31a9

Please sign in to comment.