From a5d4906257c288741fe0639a906fe4f9b13ee64e Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Thu, 13 Feb 2025 19:51:13 -0300 Subject: [PATCH] refactor: just ignore leaky tests --- src/controllers/api/cashu.test.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/cashu.test.ts b/src/controllers/api/cashu.test.ts index f367cc10..ac8eb699 100644 --- a/src/controllers/api/cashu.test.ts +++ b/src/controllers/api/cashu.test.ts @@ -18,7 +18,10 @@ interface AppEnv extends HonoEnv { }; } -Deno.test('PUT /wallet must be successful', async () => { +Deno.test('PUT /wallet must be successful', { + sanitizeOps: false, + sanitizeResources: false, +}, async () => { await using db = await createTestDB(); const store = db.store; @@ -273,7 +276,15 @@ Deno.test('GET /wallet must be successful', async () => { }); Deno.test('GET /mints must be successful', async () => { - const app = new Hono().route('/', cashuApp); + await using db = await createTestDB(); + const store = db.store; + + const app = new Hono().use( + async (c, next) => { + c.set('store', store); + await next(); + }, + ).route('/', cashuApp); const response = await app.request('/mints', { method: 'GET',