diff --git a/packages/driver/src/cypress/stack_utils.ts b/packages/driver/src/cypress/stack_utils.ts index d6ecf6fdee8a..2164f0e79e83 100644 --- a/packages/driver/src/cypress/stack_utils.ts +++ b/packages/driver/src/cypress/stack_utils.ts @@ -43,7 +43,7 @@ const stackWithContentAppended = (err, stack: string = '') => { const normalizedContent = normalizeStackIndentation(appendToStack.content) const content = $utils.indent(normalizedContent, 2) - return `${stack.trimEnd()}\n\n\n${appendToStack.title}:\n${content}` + return `${stack}\n\n${appendToStack.title}:\n${content}` } const stackWithLinesRemoved = (stack, cb) => {