fix: stabilize web workspace quality gates

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-02-23 11:25:27 +00:00
parent e387323871
commit 7c616d412d
15 changed files with 752 additions and 2811 deletions

View File

@@ -37,8 +37,6 @@ describe('Swagger Documentation', () => {
beforeEach(() => {
app = express();
app.use(express.json());
// Reset mock
(setupSwagger as jest.Mock).mockClear();
});
describe('specs', () => {
@@ -92,7 +90,9 @@ describe('Swagger Documentation', () => {
setupSwagger(mockApp, '/docs');
expect(setupSwagger).toHaveBeenCalledWith(mockApp, '/docs');
expect(mockApp.use).toHaveBeenCalled();
expect(mockApp.get).toHaveBeenCalledWith('/docs.json', expect.any(Function));
expect(mockApp.get).toHaveBeenCalledWith('/docs.yaml', expect.any(Function));
});
});