Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Test methods not chainable #36

Open
ghosh opened this issue Jun 24, 2019 · 0 comments
Open

Test methods not chainable #36

ghosh opened this issue Jun 24, 2019 · 0 comments

Comments

@ghosh
Copy link

ghosh commented Jun 24, 2019

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants