Skip to content

Commit

Permalink
test: print ct pkg version
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Dec 11, 2023
1 parent 9e80d5d commit 3a3d32f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ import { execSync } from 'node:child_process';
import { ensureNodeVersion, getPackageVersion, removeDir } from './helpers.mjs';

!process.env.CI && ensureNodeVersion(20);
console.log(`Playwright version: ${getPackageVersion('@playwright/test')}`);
console.log(`Cucumber version: ${getPackageVersion('@cucumber/cucumber')}`);
showVersion('@playwright/test');
showVersion('@playwright/experimental-ct-react');
showVersion('@cucumber/cucumber');
removeDir('./test-results');
// must build project before tests as we run tests without ts-node
execSync('npm run build', { stdio: 'inherit' });

function showVersion(pkg) {
console.log(`Version of ${pkg}: ${getPackageVersion(pkg)}`);
}

0 comments on commit 3a3d32f

Please sign in to comment.