We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb10049 commit e61fc35Copy full SHA for e61fc35
@commitlint/cli/src/cli.test.ts
@@ -479,7 +479,11 @@ test('should print version', async () => {
479
test('should print config', async () => {
480
const cwd = await gitBootstrap('fixtures/default');
481
const actual = await cli(['--print-config', '--no-color'], {cwd})();
482
- expect(actual.stdout).toMatchInlineSnapshot(`
+ const stdout = actual.stdout
483
+ .replace(/^{[^\n]/g, '{\n ')
484
+ .replace(/[^\n]}$/g, '\n}')
485
+ .replace(/(helpUrl:)\n[ ]+/, '$1 ');
486
+ expect(stdout).toMatchInlineSnapshot(`
487
"{
488
extends: [],
489
formatter: '@commitlint/format',
0 commit comments