Skip to content

Commit 92b8f14

Browse files
committed
up
1 parent b0842f1 commit 92b8f14

5 files changed

Lines changed: 10 additions & 12 deletions

File tree

tests/integration/exports/[jobId]/route.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ vi.mock('@/lib/api-middleware', async () => {
1616
const actual = await vi.importActual('@/lib/api-middleware');
1717
return {
1818
...actual,
19-
createApiHandler: (middlewares: any, handler: any) => {
19+
createApiHandler: (_middlewares: any, handler: any) => {
2020
return async (request: any, context: any) => {
2121
// Simulate authenticated middleware
2222
context = context || { params: {} };

tests/integration/orders/export/route.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ vi.mock('@/lib/api-middleware', async () => {
2929
const actual = await vi.importActual('@/lib/api-middleware');
3030
return {
3131
...actual,
32-
createApiHandler: (middlewares: any, handler: any) => {
32+
createApiHandler: (_middlewares: any, handler: any) => {
3333
return async (request: any, context: any) => {
3434
// Simulate authenticated middleware with default store admin
3535
context = context || {};
@@ -63,7 +63,7 @@ describe('GET /api/orders/export', () => {
6363
const { createApiHandler } = await import('@/lib/api-middleware');
6464
const originalHandler = createApiHandler;
6565

66-
vi.mocked(createApiHandler).mockImplementation((middlewares, handler) => {
66+
vi.mocked(createApiHandler).mockImplementation((_middlewares, handler) => {
6767
return async (request, context) => {
6868
context = context || {};
6969
context.session = {
@@ -89,7 +89,7 @@ describe('GET /api/orders/export', () => {
8989
const { createApiHandler } = await import('@/lib/api-middleware');
9090
const originalHandler = createApiHandler;
9191

92-
vi.mocked(createApiHandler).mockImplementation((middlewares, handler) => {
92+
vi.mocked(createApiHandler).mockImplementation((_middlewares, handler) => {
9393
return async (request, context) => {
9494
context = context || {};
9595
context.session = {

tests/unit/services/payments/intent-validator-robustness.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ describe('Payment Intent Validator Robustness (T041)', () => {
285285
const paymentIntentId = 'pi_test_outage';
286286

287287
// Simulate provider completely down
288-
vi.spyOn(db.payment, 'findFirst').mockImplementation(async () => {
288+
vi.spyOn(db.payment, 'findFirst').mockImplementation((async () => {
289289
throw new Error('ENOTFOUND: Provider unreachable');
290-
});
290+
}) as any);
291291

292292
await expect(
293293
validatePaymentIntent(paymentIntentId, 1000, storeId)
@@ -330,9 +330,9 @@ describe('Payment Intent Validator Robustness (T041)', () => {
330330
expect(result1.isValid).toBe(true);
331331

332332
// Simulate provider outage
333-
vi.spyOn(db.payment, 'findFirst').mockImplementation(async () => {
333+
vi.spyOn(db.payment, 'findFirst').mockImplementation((async () => {
334334
throw new Error('ENOTFOUND: Provider unreachable');
335-
});
335+
}) as any);
336336

337337
// Second call - should return cached result (no provider call)
338338
const result2 = await validatePaymentIntent(

tests/visual/percy.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ import percySnapshot from '@percy/playwright';
4040
*/
4141

4242
const BASE_URL = process.env.BASE_URL || 'http://localhost:3000';
43-
const TEST_STORE_SUBDOMAIN = 'test-store';
44-
45-
/**
43+
const _TEST_STORE_SUBDOMAIN = 'test-store';/**
4644
* Percy snapshot options
4745
* - widths: Defined in .percy.yml (375px, 768px, 1280px)
4846
* - minHeight: Defined in .percy.yml (1024px)

tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)