Skip to content

Commit 2cc037d

Browse files
committed
Increased test timeout for adding nest and loopback with database creation
1 parent 71d10aa commit 2cc037d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/commands/add/add-loopback/add-loopback-command.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, jest, test } from '@jest/globals';
22

3-
import { FileMockUtilities, getMockConstants, MAX_ADD_TIME, MockConstants, mockInquire } from '../../../__testing__';
3+
import { FileMockUtilities, getMockConstants, MAX_ADD_TIME, MAX_GEN_CODE_TIME, MockConstants, mockInquire } from '../../../__testing__';
44
import { DbType } from '../../../db';
55
import { InquirerUtilities } from '../../../encapsulation';
66
import { AddConfiguration, AddType } from '../models';
@@ -29,7 +29,7 @@ describe('AddLoopbackCommand', () => {
2929
const command: AddLoopbackCommand = new AddLoopbackCommand(baseConfig);
3030
await command.run();
3131
expect(true).toBe(true);
32-
}, MAX_ADD_TIME);
32+
}, MAX_ADD_TIME + MAX_GEN_CODE_TIME);
3333

3434
afterEach(() => {
3535
jest.restoreAllMocks();

src/commands/add/add-nest/add-nest-command.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, expect, jest, test } from '@jest/globals';
22

3-
import { FileMockUtilities, getMockConstants, MAX_ADD_TIME, MockConstants, mockInquire } from '../../../__testing__';
3+
import { FileMockUtilities, getMockConstants, MAX_ADD_TIME, MAX_GEN_CODE_TIME, MockConstants, mockInquire } from '../../../__testing__';
44
import { InquirerUtilities } from '../../../encapsulation';
55
import { AddConfiguration, AddType } from '../models';
66
import { AddNestCommand } from './add-nest.command';
@@ -29,7 +29,7 @@ describe('AddNestCommand', () => {
2929
const command: AddNestCommand = new AddNestCommand(baseConfig);
3030
await command.run();
3131
expect(true).toBe(true);
32-
}, MAX_ADD_TIME);
32+
}, MAX_ADD_TIME + MAX_GEN_CODE_TIME);
3333

3434
afterEach(() => {
3535
jest.restoreAllMocks();

0 commit comments

Comments
 (0)