diff --git a/@commitlint/format/src/format.test.ts b/@commitlint/format/src/format.test.ts index 10b70e76aa..f3870a3924 100644 --- a/@commitlint/format/src/format.test.ts +++ b/@commitlint/format/src/format.test.ts @@ -54,7 +54,7 @@ test('returns empty summary with full commit message if verbose', () => { ); expect(actual).toStrictEqual( - '⧗ input: feat(cli): this is a valid header\n\nThis is a valid body\n\nSigned-off-by: tester\n✔ found 0 problems, 0 warnings' + '⧗ --- input ---\nfeat(cli): this is a valid header\n\nThis is a valid body\n\nSigned-off-by: tester\n✔ found 0 problems, 0 warnings' ); }); diff --git a/@commitlint/format/src/format.ts b/@commitlint/format/src/format.ts index 13baf4bf5e..1250ef6cfa 100644 --- a/@commitlint/format/src/format.ts +++ b/@commitlint/format/src/format.ts @@ -47,7 +47,7 @@ function formatInput( const hasProblems = errors.length > 0 || warnings.length > 0; return options.verbose || hasProblems - ? [`${decoration} input: ${decoratedInput}`] + ? [`${decoration} --- input ---\n${decoratedInput}`] : []; }