import { it, expect } from 'vitest'
import { createNeonHttpClient } from './neon-http.js'

it('rejects .transaction() at runtime (drizzle footgun)', async () => {
  const db = createNeonHttpClient({ connectionString: 'postgresql://u:p@h/db' })
  // @ts-expect-error narrowed type omits transaction; runtime still throws
  await expect(db.transaction(async () => {})).rejects.toThrow(
    'No transactions support in neon-http driver',
  )
})
