Config

interface Config {
    affectedIgnorePatterns?: string[];
    exitProcess?: boolean;
    sourceMapHeaders?: Record<string, string>;
    url: string;
}

Properties

affectedIgnorePatterns?: string[]

List of patterns to ignore when looking for related tests

exitProcess?: boolean

Whether to exit the process after running the extension. For example, if no tests are found and exitProcess is true, the process will exit. This is useful for CI/CD pipelines in the pull request stage.

sourceMapHeaders?: Record<string, string>

Headers to add to the request when fetching source maps (if your sourcemaps are not public, you might need to access them using some type of authentication). This will use a key to access process.env, so don't put the value directly in the config, but the key to access the environment variable.

E.g.

sourceMapHeaders: { Authorization: 'process.env.MY_TOKEN' }

or

sourceMapHeaders: { Authorization: 'MY_TOKEN' }

This way we avoid writing any sensitive information in the config file.

url: string

The URL where the files are hosted. This can differ from the local to staging or production environment.