I am actually confused and wanted to know the how jasmine works with two scenarios as below.
This all raised as I was experiencing an Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL
it('User creates a new SAP', function (done) {
value++;
expect(value).toBeGreaterThan(0);
//some code
//some code
//some code
done();
});
And the error was not resolved.
scenario 2).
Instead I added to my config file like:
jasmineNodeOpts : {
defaultTimeoutInterval: 2500000
},
which resolved the error.
So my question is, how jasmine considers both the scenarios and why did not scenario 1 work?