fix(test): allow database setup time across integration suites

This commit is contained in:
mihir 2026-09-28 21:26:14 +05:30
parent f280df5dd0
commit cbb53d74db
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ module.exports = {
preset: 'ts-jest',
moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' },
testEnvironment: 'node',
testTimeout: 60000,
testMatch: ['**/*.spec.ts'],
collectCoverageFrom: [
'src/**/*.ts',

View File

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