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();