You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using one gently instance per .js test file. The test file has multiple tests each setting expectations. However, if say the 3rd test out of 10 fails, and that test had few unmet expectations, these expectations fail the remaining tests (from 4th to 10th) because all of them are having the expectations from the failed 3rd. Is there any way to reset the expectations before each test run?
The text was updated successfully, but these errors were encountered:
A temporary work-around i found so far is to use gently.verify() at the beginning of each test to make sure there are no unmet expectations:
gently.verify('There are unmatched expectations from previous test. '+'Possible failure from that will cause this test to fail. Fix first the previous test!');
I'm using one gently instance per .js test file. The test file has multiple tests each setting expectations. However, if say the 3rd test out of 10 fails, and that test had few unmet expectations, these expectations fail the remaining tests (from 4th to 10th) because all of them are having the expectations from the failed 3rd. Is there any way to reset the expectations before each test run?
The text was updated successfully, but these errors were encountered: