Update config.ts

Signed-off-by: Alex Schwartz <alexschwartz01@gmail.com>
This commit is contained in:
Alex Schwartz 2025-02-21 19:16:38 -05:00 committed by GitHub
parent 9989b955a0
commit aa5fed6eb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,6 +49,7 @@ export class FullConfigInternal {
readonly projects: FullProjectInternal[] = [];
readonly singleTSConfigPath?: string;
readonly populateGitInfo: boolean;
readonly skipAfterAnyFailure: boolean;
cliArgs: string[] = [];
cliGrep: string | undefined;
cliGrepInvert: string | undefined;
@ -87,8 +88,9 @@ export class FullConfigInternal {
// so that plugins such as gitCommitInfoPlugin can populate metadata once.
userConfig.metadata = userConfig.metadata || {};
this.skipAfterAnyFailure = userConfig.skipAfterAnyFailure ?? true;
this.config = {
skipAfterAnyFailure: userConfig.skipAfterAnyFailure ?? true,
configFile: resolvedConfigFile,
rootDir: pathResolve(configDir, userConfig.testDir) || configDir,
forbidOnly: takeFirst(configCLIOverrides.forbidOnly, userConfig.forbidOnly, false),