test(server): ORM suites open the schema snapshot; RESET_TABLES derived from the schema

This commit is contained in:
jubnl
2026-09-21 18:12:07 +02:00
parent f4fe27a3f8
commit ef184ec7c2
9 changed files with 60 additions and 135 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
import { afterAll, beforeAll, beforeEach, describe, expect, it } from 'vitest';
import { createTestDb, resetTestDb } from '../../helpers/test-db';
import { createSnapshotTestDb } from '../../helpers/db-mock';
import { resetTestDb } from '../../helpers/test-db';
import { createTestOrm, type TestOrm } from '../../helpers/test-orm';
import { createUser } from '../../helpers/factories';
import { Users } from '../../../src/db/entities/Users.entity';
const testDb = createTestDb();
const testDb = createSnapshotTestDb();
let t: TestOrm;
beforeAll(async () => { t = await createTestOrm(testDb); });