diff --git a/new-package/elm-review-package-tests/check-previews-compile.js b/new-package/elm-review-package-tests/check-previews-compile.js index 13699cdc5..be0acc61b 100644 --- a/new-package/elm-review-package-tests/check-previews-compile.js +++ b/new-package/elm-review-package-tests/check-previews-compile.js @@ -99,9 +99,10 @@ function checkDepsAreCompatible(exampleConfiguration, previewDependencies) { const remainingKeys = Object.keys(previewDependencies); if (remainingKeys.length > 0) { + const extraneousDependencies = remainingKeys.join(', '); + console.error( - // prettier-ignore - `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${remainingKeys.join(', ')}` + `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${extraneousDependencies}` ); process.exit(1); } diff --git a/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js b/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js index dcafe0169..ee48a13e6 100644 --- a/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js +++ b/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js @@ -98,9 +98,10 @@ function checkDepsAreCompatible(exampleConfiguration, previewDependencies) { const remainingKeys = Object.keys(previewDependencies); if (remainingKeys.length > 0) { + const extraneousDependencies = remainingKeys.join(', '); + console.error( - // prettier-ignore - `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${remainingKeys.join(', ')}` + `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${extraneousDependencies}` ); process.exit(1); } diff --git a/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js b/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js index dcafe0169..ee48a13e6 100644 --- a/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js +++ b/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js @@ -98,9 +98,10 @@ function checkDepsAreCompatible(exampleConfiguration, previewDependencies) { const remainingKeys = Object.keys(previewDependencies); if (remainingKeys.length > 0) { + const extraneousDependencies = remainingKeys.join(', '); + console.error( - // prettier-ignore - `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${remainingKeys.join(', ')}` + `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${extraneousDependencies}` ); process.exit(1); }