Skip to content

Commit 9e3ddfa

Browse files
committed
strict
1 parent cc0e430 commit 9e3ddfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/create-jest/src/generateConfigFile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ const stringifyOption = (
1414
map: Partial<Config.InitialOptions>,
1515
linePrefix = '',
1616
): string => {
17-
const optionDescription = descriptions[option]
18-
? ` // ${descriptions[option]}`
19-
: '';
17+
const description = descriptions[option];
18+
const optionDescription =
19+
description != null && description.length > 0 ? ` // ${description}` : '';
2020
const stringifiedObject = `${option}: ${JSON.stringify(
2121
map[option],
2222
null,

0 commit comments

Comments
 (0)