Update backup tests to 996daf691d4162ce

This commit is contained in:
Fedor Indutny
2024-10-01 11:42:24 -07:00
committed by GitHub
parent 697df7e946
commit 276a145fea
2 changed files with 2 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ function patchDeepEqual(method: 'deepEqual' | 'deepStrictEqual'): void {
return originalFn(...args);
} catch (error) {
reporters.base.useColors = false;
(reporters.base as unknown as { maxDiffSize: number }).maxDiffSize = 0;
error.message = reporters.base.generateDiff(
inspect(error.actual, { depth: Infinity, sorted: true }),
inspect(error.expected, { depth: Infinity, sorted: true })