title: How do I reliably execute Jasmine tests that utilize requirejs via phantomjs?
body: <p>I am using phantomjs to run jasmine test. My jasmine tests are using require around the describe blocks to ensure all the right modules are loaded.</p>
  
  <p>My tests would not run because <code>page.evaluate -&gt; jasmine.getEnv().execute();</code> runs BEFORE requirejs finishes loading the modules.</p>
  
  <p>I was wondering if anyone knows a real good way around this. I have an answer I'm going to post below but would love to compare notes via other answers. If yours is better, I will def pick it as answer obviously :)</p>