Skip to content

Commit 0c3b4f6

Browse files
filipesilvahansl
authored andcommitted
test(@angular/cli): increase ng new acceptance timeout
1 parent 91dc191 commit 0c3b4f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/acceptance/new.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ const root = process.cwd();
1414

1515

1616
describe('Acceptance: ng new', function () {
17+
let originalTimeout: number;
18+
1719
beforeEach((done) => {
20+
// Increase timeout for these tests only.
21+
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
22+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
23+
1824
spyOn(console, 'error');
1925

2026
tmp.setup('./tmp')
@@ -23,6 +29,7 @@ describe('Acceptance: ng new', function () {
2329
}, 10000);
2430

2531
afterEach((done) => {
32+
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
2633
tmp.teardown('./tmp').then(() => done());
2734
});
2835

0 commit comments

Comments
 (0)