feat: add role_write permission and update e2e tests
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user