How to fix clearrun.config.json errors

Each config error names the problem. Fix that field and run again. The run exits 1 until the file is valid.

Last updated

Errors and fixes

Errors and fixes
MessageFix
Config file not found: <path>Check the path you passed to --config
Config file is not valid JSON: <file>Fix the JSON. Look for trailing commas or missing quotes
Config file must contain a JSON objectThe file must start with { and end with }
Config "paths" must be an array of non-empty stringsUse "paths": ["responses/"], not a single string
Config "threshold" must be a number from 0 to 100Use a plain number, such as 70
Config "maxIssues" must be a whole number, 0 or moreUse 0, 1, 2 and so on
Config "baseUrl" must be a stringPut the URL in quotes
Config "apiKey" must be a stringPut the key in quotes, or better, remove it

A valid example

{
  "paths": ["responses/"],
  "threshold": 70,
  "maxIssues": 3
}