We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb10049 commit 4963d77Copy full SHA for 4963d77
@commitlint/cli/src/cli.test.ts
@@ -479,7 +479,10 @@ 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$1')
484
+ .replace(/[^\n]}$/g, '\n}');
485
+ expect(stdout).toMatchInlineSnapshot(`
486
"{
487
extends: [],
488
formatter: '@commitlint/format',
0 commit comments