Remove jasmine async hack once jasmine has been updated.

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

The following discussion from gitlab-ce!12226 should be addressed:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12226#note_32563545

jasmine-core currently has an issue where it hogs the main thread preventing karma from communicating over the socket. the current workaround is to inject async calls in between tests with the following global beforeEach:

beforeEach(done => done());

the workaround was suggested in the following issue:
https://github.com/jasmine/jasmine/issues/1327

it is also used the same workaround currently used by the angular framework:
https://github.com/angular/angular/pull/17498

Once jasmine-core is updated to address this problem, we can remove the hack.

Edited Sep 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading