Come on, this is such an easy thing to forget to test. Don't act like there is some magical testing strategy that would have caught this
Integration testing could/should catch this, especially for a client side app.
A simple constraints is a good thing. "Our app shouldn't use more than 50mb of ram, or use 3gb of disk space."