fix(shared): expose ./crypto/testBackend in package exports

Removes the @shared Vite-alias workaround in userIdentity.test.ts so
tsc can resolve the import without an extra paths entry.
This commit is contained in:
byGalax
2026-05-15 22:43:24 +02:00
parent b89a7e2617
commit 2c586351fc
2 changed files with 2 additions and 5 deletions
+1 -5
View File
@@ -1,11 +1,7 @@
import { describe, expect, it, beforeEach, vi, beforeAll } from 'vitest';
import { setCryptoBackend } from '@chat-app/shared/crypto';
// `@chat-app/shared` does not expose `./crypto/testBackend` in its package
// exports map (only `./crypto`). Reach the test backend through the local
// `@shared` Vite alias (configured in apps/desktop/vite.config.ts) so the
// import resolves at test time without modifying the shared package.
import { makeWasmTestBackend } from '@shared/crypto/testBackend';
import { makeWasmTestBackend } from '@chat-app/shared/crypto/testBackend';
beforeAll(async () => { setCryptoBackend(await makeWasmTestBackend()); });