title: Jest timeouts when trying to test with jasmine-pit
body: <p>I'm trying to use Jest to run a small test against an angular UI but I'm getting a timeout after 5 seconds.
  Here's my code:</p>
  
  <pre><code>jest.autoMockOff();
  
  require('../../../../bower_components/angular/angular');
  require('../../../../bower_components/angular-mocks/angular-mocks');
  
  window.Event = {};
  
  describe('about', function(){
  
     var mockScope;
  
     pit('updates the view ', function(done){
          return runTest()
         .then(function(){
             var $ = require('../../../../bower_components/jquery/dist/jquery');
             expect($("#about-div").text()).toEqual('fred');  
         });
      });
  
      function runTest() {
         var q = require('../../../../bower_components/q/q');
         var defer = q.defer();
  
         require('../../../../app/scripts/app');
         require('../../../../app/scripts/controllers/about');
  
         angular.mock.module('app');
         inject(function($rootScope, $controller){
            mockScope = $rootScope.$new();
            controller = $controller('aboutController', {$scope: mockScope});
         });
  
         document.body.innerHTML =
              '&lt;html&gt;' +
              '   &lt;body&gt;' +
              '      &lt;div ng-controller="aboutController"&gt;' +
              '         &lt;div id="about-div" &gt;{{firstName}}&lt;/div&gt;' +
              '      &lt;/div&gt;' +
              '   &lt;/body&gt;' + 
              '&lt;/html&gt;';
  
         setTimeout(function() { defer.resolve(); }, 1000);
  
         return defer.promise;
     };
  });
  </code></pre>
  
  <p>I'm using pit so I can have a 1 second delay to allow angular to update the view but it seems that the anonymous function in the setTimeout never gets called. The promise doesn't get fulfilled and the test times out. As Jest uses Jasmine 1.3.0 I've also tried using runs() and waitsFor() but I get the same result.</p>