[SD-257] Test review/ CI pipeline improvement
Closes SD-257 This MR:
- Optimises the CI pipeline by running tests in parallel with jest's
maxWorkersand--shardfeatures reducing significantly the CI pipeline's time - Ensures proper releasing of resources at the end of each test suite
- Small fixes that showed up in the logs during
npm run docker:e2e(i.e., removingsudofrom the gitlab library methods - although the primary email update issue still persists - and fixing membership updates after aCOMPETITIONS_ON_ARCHIVEevent)
Edited by Orestis Athanasopoulos Antoniou