From c3520b5ad4625ce0d033e1429461f756825bfd83 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Thu, 21 May 2026 15:03:44 +0200 Subject: [PATCH] test(products): increase test timeout for category update - Set Jest timeout to 15 seconds for products.update-category.http.spec.ts - Ensures reliable execution of category update integration tests BREAKING CHANGE: None --- .../src/products/products.update-category.http.spec.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/backend/src/products/products.update-category.http.spec.ts b/backend/src/products/products.update-category.http.spec.ts index b1361789..25539067 100644 --- a/backend/src/products/products.update-category.http.spec.ts +++ b/backend/src/products/products.update-category.http.spec.ts @@ -5,13 +5,15 @@ import { INestApplication, ValidationPipe, } from '@nestjs/common'; -import { Test, TestingModule } from '@nestjs/testing'; -import request = require('supertest'); +import { Test, TestingModule } from '@nestjs/testing'; +import request = require('supertest'); import { AiService } from '../ai/ai.service'; import { CategoriesService } from '../categories/categories.service'; -import { ProductsController } from './products.controller'; -import { ProductsService } from './products.service'; +import { ProductsController } from './products.controller'; +import { ProductsService } from './products.service'; + +jest.setTimeout(15000); class FakeJwtGuard implements CanActivate { canActivate(context: ExecutionContext): boolean {