refactor: remove unused tests, mocks, and outdated e2e configurations

Deleted unused e2e tests, mocks (`cuid2`, `jose`, `ml-kem`, `sha3`), and their associated jest configurations. Simplified services by ensuring proper dependency imports, resolving circular references, and improving TypeScript type usage for enhanced maintainability and testability. Upgraded Dockerfile base image to match new development standards.
This commit is contained in:
Mathis HERRIOT
2026-01-14 13:51:32 +01:00
parent 8ffeaeba05
commit 0c045e8d3c
44 changed files with 163 additions and 183 deletions

View File

@@ -3,9 +3,9 @@ export * from "./audit_logs";
export * from "./categories";
export * from "./content";
export * from "./favorites";
export * from "./pgp";
export * from "./rbac";
export * from "./reports";
export * from "./sessions";
export * from "./tags";
export * from "./users";
export * from "./pgp";

View File

@@ -55,6 +55,9 @@ export function pgpSymEncrypt(value: string | SQL, key: string | SQL) {
/**
* @deprecated Utiliser directement les colonnes de type pgpEncrypted qui gèrent maintenant le déchiffrement automatiquement.
*/
export function pgpSymDecrypt(column: AnyPgColumn, key: string | SQL): SQL<string> {
export function pgpSymDecrypt(
column: AnyPgColumn,
key: string | SQL,
): SQL<string> {
return sql`pgp_sym_decrypt(${column}, ${key})`.mapWith(column) as SQL<string>;
}

View File

@@ -1,4 +1,3 @@
import { SQL, sql } from "drizzle-orm";
import {
boolean,
index,