diff --git a/packages/typegen/test/register-mock-serializer.ts b/packages/typegen/test/register-mock-serializer.ts index 87ff5fb4..020a0fbd 100644 --- a/packages/typegen/test/register-mock-serializer.ts +++ b/packages/typegen/test/register-mock-serializer.ts @@ -14,5 +14,8 @@ expect.addSnapshotSerializer({ }, }) .replaceAll(process.cwd(), '[cwd]') - .replaceAll(process.cwd().replaceAll('\\', '/'), '[cwd]'), + .replaceAll(process.cwd().replaceAll('\\', '/'), '[cwd]') + .split('\n') + .map(line => (line.trim() ? line : '')) + .join('\n'), })