test: comprehensive test suites and quality gates pass across backend, storefront and admin
Deploy Canina / deploy (push) Successful in 4m1s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 7s

- Backend (NestJS): 82 suites, 641 tests passing; 0 ESLint errors; 0 tsc errors. Hardened SSL cert/key matching, SSRF IP pinning, and eBank validation.
- Admin Panel (Vite/React): 48 suites, 300 tests passing; 0 ESLint errors; 0 tsc errors. Full coverage across all pages and settings.
- Storefront (Next.js): 62 suites, 368 tests passing; 0 ESLint errors; 0 tsc errors.
- Fixed unmount lifecycle guards, promise error handling, and component edge cases.
This commit is contained in:
devops committed 2026-10-13 16:01:00 +00:00
1 parent 1e73715169
commit ddbf1ca026
439 files changed
+32911 -6107

No files matched your search

@@ -1,27 +1,27 @@
import { DecimalInterceptor } from './decimal.interceptor';
import { ExecutionContext, CallHandler } from '@nestjs/common';
import { Prisma } from '@prisma/client';
import { of } from 'rxjs';
import { DecimalInterceptor } from "./decimal.interceptor";
import { ExecutionContext, CallHandler } from "@nestjs/common";
import { Prisma } from "@prisma/client";
import { of } from "rxjs";
describe('DecimalInterceptor', () => {
describe("DecimalInterceptor", () => {
let interceptor: DecimalInterceptor;
beforeEach(() => {
interceptor = new DecimalInterceptor();
});
it('should be defined', () => {
it("should be defined", () => {
expect(interceptor).toBeDefined();
});
it('should transform Prisma.Decimal instances to exact string representations', (done) => {
it("should transform Prisma.Decimal instances to exact string representations", (done) => {
const mockData = {
id: 'order-1',
totalAmount: new Prisma.Decimal('64.98'),
id: "order-1",
totalAmount: new Prisma.Decimal("64.98"),
items: [
{
id: 'item-1',
unitPrice: new Prisma.Decimal('32.49'),
id: "item-1",
unitPrice: new Prisma.Decimal("32.49"),
},
],
};
@@ -33,12 +33,12 @@ describe('DecimalInterceptor', () => {
interceptor.intercept(executionContext, callHandler).subscribe((result) => {
expect(result).toEqual({
id: 'order-1',
totalAmount: '64.98',
id: "order-1",
totalAmount: "64.98",
items: [
{
id: 'item-1',
unitPrice: '32.49',
id: "item-1",
unitPrice: "32.49",
},
],
});
@@ -46,12 +46,12 @@ describe('DecimalInterceptor', () => {
});
});
it('should leave non-decimal values unchanged', (done) => {
it("should leave non-decimal values unchanged", (done) => {
const mockData = {
name: 'Test',
name: "Test",
age: 5,
isActive: true,
createdAt: new Date('2026-01-01T00:00:00.000Z'),
createdAt: new Date("2026-01-01T00:00:00.000Z"),
};
const executionContext = {} as ExecutionContext;
@@ -3,10 +3,10 @@ import {
NestInterceptor,
ExecutionContext,
CallHandler,
} from '@nestjs/common';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { Prisma } from '@prisma/client';
} from "@nestjs/common";
import { Observable } from "rxjs";
import { map } from "rxjs/operators";
import { Prisma } from "@prisma/client";
@Injectable()
export class DecimalInterceptor implements NestInterceptor {
@@ -27,7 +27,7 @@ export class DecimalInterceptor implements NestInterceptor {
return data.map((item: unknown) => this.transform(item));
}
if (typeof data === 'object' && !(data instanceof Date)) {
if (typeof data === "object" && !(data instanceof Date)) {
const obj = data as Record<string, unknown>;
const transformedObj: Record<string, unknown> = {};
for (const key of Object.keys(obj)) {