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
This commit is contained in:
@@ -5,13 +5,15 @@ import {
|
|||||||
INestApplication,
|
INestApplication,
|
||||||
ValidationPipe,
|
ValidationPipe,
|
||||||
} from '@nestjs/common';
|
} from '@nestjs/common';
|
||||||
import { Test, TestingModule } from '@nestjs/testing';
|
import { Test, TestingModule } from '@nestjs/testing';
|
||||||
import request = require('supertest');
|
import request = require('supertest');
|
||||||
|
|
||||||
import { AiService } from '../ai/ai.service';
|
import { AiService } from '../ai/ai.service';
|
||||||
import { CategoriesService } from '../categories/categories.service';
|
import { CategoriesService } from '../categories/categories.service';
|
||||||
import { ProductsController } from './products.controller';
|
import { ProductsController } from './products.controller';
|
||||||
import { ProductsService } from './products.service';
|
import { ProductsService } from './products.service';
|
||||||
|
|
||||||
|
jest.setTimeout(15000);
|
||||||
|
|
||||||
class FakeJwtGuard implements CanActivate {
|
class FakeJwtGuard implements CanActivate {
|
||||||
canActivate(context: ExecutionContext): boolean {
|
canActivate(context: ExecutionContext): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user