vow icon indicating copy to clipboard operation
vow copied to clipboard

Test methods not chainable

Open ghosh opened this issue 5 years ago • 0 comments

Package version

4.1.0

Node.js and npm version

Node - 11.14.0 NPM - 6.9.0

Sample Code (to reproduce the issue)

These work:-

test('test name', async (ctx) => {
  // This works
}).timeout(100)
test('test name', async (ctx) => {
  // This works
}).retry(3)

However, these do not:-

test('test name', async (ctx) => {
 // This doesn't work
}).timeout(100).retry(3)
test('test name', async (ctx) => {
 // This doesn't work
}).retry(3).timeout(100)

It produces this error:-

TypeError: Cannot read property 'retry' of undefined

ghosh avatar Jun 24 '19 19:06 ghosh