apply nit

This commit is contained in:
Simon Knott 2024-10-16 08:54:46 +02:00
parent c8c483cacb
commit 5eb3734bb2
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -81,8 +81,8 @@ export class FullConfigInternal {
rootDir: pathResolve(configDir, userConfig.testDir) || configDir,
forbidOnly: takeFirst(configCLIOverrides.forbidOnly, userConfig.forbidOnly, false),
fullyParallel: takeFirst(configCLIOverrides.fullyParallel, userConfig.fullyParallel, false),
globalSetup: takeFirst(...this.globalSetups, null),
globalTeardown: takeFirst(...this.globalTeardowns, null),
globalSetup: this.globalSetups[0] ?? null,
globalTeardown: this.globalTeardowns[0] ?? null,
globalTimeout: takeFirst(configCLIOverrides.globalTimeout, userConfig.globalTimeout, 0),
grep: takeFirst(userConfig.grep, defaultGrep),
grepInvert: takeFirst(userConfig.grepInvert, null),