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"; import { Test, TestingModule } from "@nestjs/testing";
jest.mock("@noble/post-quantum/ml-kem.js", () => ({ jest.mock("@noble/post-quantum/ml-kem.js", () => ({

View File

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