Files
accounted/tests/pg/sandbox-seed-attempts.pg.test.ts
T
Mattsson 7c36d471b5 fix(sandbox): use posting engine and recover failed seeds (#2297)
* fix(sandbox): seed through posting engine and recover failed attempts

* test(sandbox): align CI auth schema for anonymous users
2026-09-05 10:42:14 +02:00

17 lines
547 B
TypeScript

import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import { describe, it } from 'vitest'
import { getPool } from './setup'
describe('sandbox seed attempt lifecycle', () => {
it('serializes claims, isolates users, preserves partial data and fences stale completions', async () => {
const client = await getPool().connect()
try {
await client.query(readFileSync(resolve('tests/pg/sandbox-seed-attempts.sql'), 'utf8'))
} finally {
await client.query('ROLLBACK')
client.release()
}
})
})