jasmine-rails icon indicating copy to clipboard operation
jasmine-rails copied to clipboard

Empty spec causes infinite loop hang

Open amandapouget opened this issue 7 years ago • 1 comments

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.

amandapouget avatar Apr 25 '17 20:04 amandapouget