Phase 10: запрет inline eslint-disable, file-level overrides, IUser-тип

This commit is contained in:
Suslov-MD
2026-08-16 17:06:45 +00:00
parent 65c44f570c
commit dad4642197
22 changed files with 144 additions and 67 deletions
-1
View File
@@ -27,7 +27,6 @@ function authed(req: request.Test): request.Test {
/** Создаёт тестовую новость и возвращает её id. */
async function createTestNews(title: string): Promise<string> {
const res = await authed(request(app).post('/api/news').send({ title, content: 'Тест' }));
// eslint-disable-next-line @typescript-eslint/no-unsafe-return -- supertest body
return res.body.news.id;
}