We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0e430 commit 9e3ddfaCopy full SHA for 9e3ddfa
packages/create-jest/src/generateConfigFile.ts
@@ -14,9 +14,9 @@ const stringifyOption = (
14
map: Partial<Config.InitialOptions>,
15
linePrefix = '',
16
): string => {
17
- const optionDescription = descriptions[option]
18
- ? ` // ${descriptions[option]}`
19
- : '';
+ const description = descriptions[option];
+ const optionDescription =
+ description != null && description.length > 0 ? ` // ${description}` : '';
20
const stringifiedObject = `${option}: ${JSON.stringify(
21
map[option],
22
null,
0 commit comments