feat: add role_write permission and update e2e tests
Check Deno code / Check Deno code (pull_request) Failing after 5s
Tests / Unit tests (pull_request) Successful in 13s
Tests / Integration tests (pull_request) Successful in 1m12s

Add role_write permission to permissions table and update migrations.
Update e2e tests to use DB integration and seed permissions.
Add seedPermissions helper.
This commit is contained in:
2026-04-27 18:56:04 +02:00
parent 2c5e4ebf11
commit f162fcaadc
4 changed files with 38 additions and 12 deletions
+6
View File
@@ -111,3 +111,9 @@ export async function seedAjustements(
): Promise<typeof schema.ajustements.$inferSelect[]> {
return await testDb.insert(schema.ajustements).values(rows).returning();
}
export async function seedPermissions(
rows: { id: string; nom: string }[],
): Promise<typeof schema.permissions.$inferSelect[]> {
return await testDb.insert(schema.permissions).values(rows).returning();
}