vow
vow copied to clipboard
Test methods not chainable
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