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', preset: 'ts-jest',
moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' }, moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' },
testEnvironment: 'node', testEnvironment: 'node',
testTimeout: 60000,
testMatch: ['**/*.spec.ts'], testMatch: ['**/*.spec.ts'],
collectCoverageFrom: [ collectCoverageFrom: [
'src/**/*.ts', 'src/**/*.ts',

View File

@ -9,7 +9,7 @@ describe('atomic checkout and order snapshots', () => {
ctx = await identityApp(); ctx = await identityApp();
}); });
afterAll(async () => { afterAll(async () => {
await ctx.close(); await ctx?.close();
}); });
beforeEach(async () => { beforeEach(async () => {
await ctx.clearLimits(); await ctx.clearLimits();