Skip to content

Commit 65431e4

Browse files
authored
fix: print current version at startup (#64)
It's currently hard to see what versions the tests are at, so print this at startup so we don't have to guess.
1 parent 420edac commit 65431e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/@aws-cdk-testing/cli-integ/lib/cli/run-suite.ts

+6
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ async function main() {
101101

102102
console.log(`Package source: ${packageSource.description}`);
103103
console.log(`Test suite: ${suiteName}`);
104+
console.log(`Test version: ${thisPackageVersion()}`);
104105

105106
await packageSource.prepare();
106107
serializeForSubprocess(packageSource);
@@ -133,6 +134,11 @@ async function main() {
133134
}
134135
}
135136

137+
function thisPackageVersion(): string {
138+
// eslint-disable-next-line @typescript-eslint/no-require-imports
139+
return require('../../package.json').version;
140+
}
141+
136142
main().catch(e => {
137143
// eslint-disable-next-line no-console
138144
console.error(e);

0 commit comments

Comments
 (0)