Skip to content

Commit

Permalink
strict
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 7, 2023
1 parent cc0e430 commit 9e3ddfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/create-jest/src/generateConfigFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const stringifyOption = (
map: Partial<Config.InitialOptions>,
linePrefix = '',
): string => {
const optionDescription = descriptions[option]
? ` // ${descriptions[option]}`
: '';
const description = descriptions[option];
const optionDescription =
description != null && description.length > 0 ? ` // ${description}` : '';
const stringifiedObject = `${option}: ${JSON.stringify(
map[option],
null,
Expand Down

0 comments on commit 9e3ddfa

Please sign in to comment.