Enable --expose-gc in Jest tests

What does this MR do and why?

Enable --expose-gc in Jest tests

This enables --expose-gc in Jest tests, so we can avoid the apparent memory leak detailed in https://gitlab.com/gitlab-com/gl-infra/gitlab-dedicated/switchboard/-/merge_requests/1933#note_2171478212.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading