diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-07-08 18:14:18 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-07-08 18:14:18 +0300 |
commit | 386ff4bc934871b3434afde7c69a30a9b138c781 (patch) | |
tree | ca4bdd9063151368832a67456b0e3d52084ce6b4 | |
parent | 8f9fbbebc5c5b679730a14a8aef165954c1099c0 (diff) |
Check memory consumption of Jest
-rw-r--r-- | spec/frontend/test_setup.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/test_setup.js b/spec/frontend/test_setup.js index 15cf18700ed..97b6dadb0d3 100644 --- a/spec/frontend/test_setup.js +++ b/spec/frontend/test_setup.js @@ -79,3 +79,9 @@ Object.entries(jqueryMatchers).forEach(([matcherName, matcherFactory]) => { // Tech debt issue TBD testUtilsConfig.logModifiedComponents = false; + +beforeEach(() => { + const { execSync } = require('child_process'); + console.log('free -m', execSync('free -m')); +}); + |