We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f63bd18 commit 76ac895Copy full SHA for 76ac895
@commitlint/cli/src/cli.test.ts
@@ -465,9 +465,8 @@ test('should print help', async () => {
465
466
test('should print version', async () => {
467
const cwd = await gitBootstrap('fixtures/default');
468
- const pkg = require('../package.json');
469
const actual = await cli(['--version'], {cwd})();
470
- expect(actual.stdout).toMatch(`@commitlint/cli@${pkg.version}`);
+ expect(actual.stdout).toMatch('@commitlint/cli@');
471
});
472
473
async function writePkg(payload: unknown, options: TestOptions) {
0 commit comments