fix(tooling): repair test, i18n and docs verification gates (#3331)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 01:38:34 +02:00
1 parent ece622e800
commit f390e610b9
107 files changed
+5144 -3004

No files matched your search

+1
View File
@@ -21,6 +21,7 @@
},
"devDependencies": {
"@biomejs/biome": "catalog:",
"@fluxer/constants": "workspace:*",
"@types/node": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:ts7",
@@ -296,4 +296,10 @@ describe('published public and admin documents', () => {
const status = documentFor('public').components.schemas.ReportResponse.properties?.status;
expect(status).toEqual({type: 'string', description: 'Current status of the report (pending, resolved)'});
});
it('keeps the report status and type enums in the admin document', () => {
const {schemas} = documentFor('admin').components;
expect(schemas.ReportStatus).toMatchObject({type: 'integer', format: 'int32', enum: [0, 1]});
expect(schemas.ReportType).toMatchObject({type: 'integer', format: 'int32', enum: [0, 1, 2]});
});
});