Measure memory usage during JS tests in CI
Recently we had an incident where
jest was blowing up in memory. This led to a broken pipeline in
In Memory team, we have the initiative to measure memory resources during CI runs, but currently, it is under implementation for RSpec examples only (https://gitlab.com/gitlab-org/gitlab-ce/issues/62747).
As mentioned by Stan (https://gitlab.com/gitlab-org/gitlab-ce/issues/62747#note_189855954) we may also want to expand our measurements for JS tests and do something similar to what we do with RSpec.
It could be done with
Example MR using it: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/30482/diffs