refactor: just ignore leaky tests

This commit is contained in:
P. Reis 2025-02-13 19:51:13 -03:00
parent 26346b83ac
commit a5d4906257

View file

@ -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(); await using db = await createTestDB();
const store = db.store; const store = db.store;
@ -273,7 +276,15 @@ Deno.test('GET /wallet must be successful', async () => {
}); });
Deno.test('GET /mints must be successful', async () => { Deno.test('GET /mints must be successful', async () => {
const app = new Hono<AppEnv>().route('/', cashuApp); await using db = await createTestDB();
const store = db.store;
const app = new Hono<AppEnv>().use(
async (c, next) => {
c.set('store', store);
await next();
},
).route('/', cashuApp);
const response = await app.request('/mints', { const response = await app.request('/mints', {
method: 'GET', method: 'GET',