Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
fix version test
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Dec 28, 2023
1 parent 59c8723 commit 2fde94c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cli-tests/tests/version.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ import { test } from '@fixtures';
test.describe('Everest CLI "version" validation', async () => {
test('version validation', async ({ cli }) => {
const out = await cli.everestExecSilent('version');
const version = await cli.exec('git describe --always --dirty|cut -b2-');
await version.assertSuccess();
const hash = await cli.exec('shell git rev-parse --short HEAD');

await hash.assertSuccess();
const version = `v0.0.0-${hash}`;

await out.assertSuccess();
await out.outContainsNormalizedMany([
'ProjectName: everestctl',
'Version: ' + version.getStdOutLines()[0],
`Version: ${version}`,
]);
});

});

0 comments on commit 2fde94c

Please sign in to comment.