Mirrors how drizzle wraps the driver error: the SQLSTATE lives on `cause`, not the outer error.
(code: string)
| 41 | |
| 42 | /** Mirrors how drizzle wraps the driver error: the SQLSTATE lives on `cause`, not the outer error. */ |
| 43 | function wrappedPgError(code: string): Error { |
| 44 | return new Error('Failed query', { cause: pgError(code) }) |
| 45 | } |
| 46 | |
| 47 | describe('assertSchemaCompatibility', () => { |
| 48 | beforeEach(() => { |
no test coverage detected