From cbb53d74db65ef228c68af3c0a397dc4b46d00de Mon Sep 17 00:00:00 2001 From: mihir Date: Mon, 28 Sep 2026 21:26:14 +0530 Subject: [PATCH] fix(test): allow database setup time across integration suites --- jest.config.cjs | 1 + test/checkout.spec.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jest.config.cjs b/jest.config.cjs index 03f7394..0d9faf3 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -2,6 +2,7 @@ module.exports = { preset: 'ts-jest', moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' }, testEnvironment: 'node', + testTimeout: 60000, testMatch: ['**/*.spec.ts'], collectCoverageFrom: [ 'src/**/*.ts', diff --git a/test/checkout.spec.ts b/test/checkout.spec.ts index 1b177fc..2365138 100644 --- a/test/checkout.spec.ts +++ b/test/checkout.spec.ts @@ -9,7 +9,7 @@ describe('atomic checkout and order snapshots', () => { ctx = await identityApp(); }); afterAll(async () => { - await ctx.close(); + await ctx?.close(); }); beforeEach(async () => { await ctx.clearLimits();