testdouble / jasmine-rails

A Jasmine runner for rails projects that's got you covered in both the terminal and the browser
http://rubygems.org/gems/jasmine-rails
MIT License
377 stars 154 forks source link

Empty spec causes infinite loop hang #207

Open amandapouget opened 7 years ago

amandapouget commented 7 years ago
it('hangs forever and it takes you days to figure out why...', () => {
  // my spec is empty right now, without an 'expect' statement
}

=> Starting... ... hangs forever until my computer is out of memory, freezes. Adding in, expect(true).toBe(true) to the spec makes everything run just fine.

It took me forever to realize that this was the behavior I was observing. I suspected So. Many. Things. in my code before I finally realized that common denominator of when jasmine-rails hangs.

searls commented 7 years ago

Hi @mandysimon88 can you please post a minimal example project that replicates this issue? I haven't been able to