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 }> = [];