I build my Angular 9 application in a Jenkins pipeline. Two of the steps are:
npm run test:prod
node --max_old_space_size=4