Skip to content

Commit 76ac895

Browse files
committed
test(cli): add possible regression
1 parent f63bd18 commit 76ac895

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

@commitlint/cli/src/cli.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,8 @@ test('should print help', async () => {
465465

466466
test('should print version', async () => {
467467
const cwd = await gitBootstrap('fixtures/default');
468-
const pkg = require('../package.json');
469468
const actual = await cli(['--version'], {cwd})();
470-
expect(actual.stdout).toMatch(`@commitlint/cli@${pkg.version}`);
469+
expect(actual.stdout).toMatch('@commitlint/cli@');
471470
});
472471

473472
async function writePkg(payload: unknown, options: TestOptions) {

0 commit comments

Comments
 (0)