fix failing snapshot test (#15497)

This commit is contained in:
Lenz Weber-Tronic 2025-02-09 23:29:11 +01:00 committed by GitHub
parent df9cedbc89
commit dc9f98cae4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ onNodeVersions('>=23.6', () => {
expect( expect(
stderr stderr
// Remove the stack trace from the error message // Remove the stack trace from the error message
.slice(0, Math.max(0, stderr.indexOf('Caused by'))) .slice(0, Math.max(0, stderr.indexOf('at readConfigFileAndSetRootDir')))
.trim() .trim()
// Replace the path to the config file with a placeholder // Replace the path to the config file with a placeholder
.replace( .replace(