From a796034241f4f16ad4c8a2b4cdb36c6fc092538d Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Sat, 6 Jun 2026 03:08:38 +0700 Subject: [PATCH] fix(discord): migrate deprecated Zod `error.errors` to `error.issues` and add CI quality gates --- src/services/boosterRoleService.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/services/boosterRoleService.test.ts b/src/services/boosterRoleService.test.ts index 40070eb..464b109 100644 --- a/src/services/boosterRoleService.test.ts +++ b/src/services/boosterRoleService.test.ts @@ -1,5 +1,8 @@ import { describe, expect, test } from "bun:test"; -import { BoosterRoleService, type BoosterRoleRecord, type RoleRepository } from "./boosterRoleService"; +import { BoosterRoleService } from "./boosterRoleService"; +import type { BoosterRoleRecord } from "./drizzleBoosterRoleStore"; +import type { RoleRepository } from "./discordRoleRepository"; +import { ValidationError, NotFoundError, PermissionError } from "../domain/errors"; class MemoryRoleStore { private records = new Map(); @@ -28,7 +31,7 @@ class FailingCreateRoleStore extends MemoryRoleStore { } class FakeRoleRepository implements RoleRepository { - roles = new Map(); + roles = new Map(); deletedRoleIds: string[] = []; assignedRoles: Array<{ userId: string; roleId: string }> = []; removedRoles: Array<{ userId: string; roleId: string }> = [];