* fix(sandbox): seed through posting engine and recover failed attempts * test(sandbox): align CI auth schema for anonymous users
17 lines
547 B
TypeScript
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()
|
|
}
|
|
})
|
|
})
|