Build react 4G limit

When I try to run a simple unit test I’m getting a "Your build has exceeded the memory limit of 4G on 1 container`. How do I identify how much memory I am consuming?