refactor(auth): rename id to uuid in AuthStatus and mock uuid in tests

This commit is contained in:
Mathis HERRIOT
2026-01-14 21:59:51 +01:00
parent 760343da76
commit 74b61004e7
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
jest.mock("uuid", () => ({
v4: jest.fn(() => "mocked-uuid"),
}));
import { Test, TestingModule } from "@nestjs/testing";
jest.mock("@noble/post-quantum/ml-kem.js", () => ({

View File

@@ -13,7 +13,7 @@ export interface RegisterPayload {
export interface AuthStatus {
isAuthenticated: boolean;
user: null | {
id: string;
uuid: string;
username: string;
displayName?: string;
avatarUrl?: string;