lint + prettier

This commit is contained in:
jubnl
2026-10-06 21:50:59 +02:00
parent cb47947bb7
commit 267e0e16a2
3047 changed files with 267625 additions and 153719 deletions
+7 -7
View File
@@ -4,10 +4,15 @@
* off-by-default behaviour, and the CSP staying intact on the docs routes.
* Boots the real buildApp() like bootstrap.test.ts.
*/
import { describe, it, expect, vi, beforeAll, afterAll } from 'vitest';
import request from 'supertest';
import { buildApp } from '../../src/bootstrap';
import { db as testDb } from '../../src/db/database';
import { apiDocsEnabled } from '../../src/nest/common/api-docs.kill-switch';
import { resetTestDb } from '../helpers/test-db';
import type { INestApplication } from '@nestjs/common';
import request from 'supertest';
import { describe, it, expect, vi, beforeAll, afterAll } from 'vitest';
vi.mock('../../src/db/database', async () => {
const { createSnapshotTestDb, buildDbMock } = await import('../helpers/db-mock');
return buildDbMock(createSnapshotTestDb());
@@ -23,11 +28,6 @@ vi.mock('../../src/config', () => ({
}));
vi.mock('../../src/websocket', () => ({ broadcast: vi.fn(), broadcastToUser: vi.fn() }));
import { db as testDb } from '../../src/db/database';
import { resetTestDb } from '../helpers/test-db';
import { buildApp } from '../../src/bootstrap';
import { apiDocsEnabled } from '../../src/nest/common/api-docs.kill-switch';
describe('API-DOCS (#1412) — flag-gated OpenAPI surface', () => {
let app: INestApplication;
let instance: import('express').Application;