(Note the examples below are not my actual tests but the simplest form in which I could repo the issue.)
Problem:
- If my test contains an inner arrow function like
() => {} or () => returnValue then the converter does not identify the test as one needing updates.
- If my test contains an inner function like
function(arg1) {return returnValue} then the converter converts the args of the inner function too! (which isn't correct)
Arrow function example:
Scenario('myTest', async function (I) {
const myList = ['#1', '#2', '#3'];
myList.forEach((x) => '1');
})
Output:
1 unmodified
(no change to test)
function example:
Scenario('myTest', async function (I) {
const myList = ['#1', '#2', '#3'];
myList.forEach(function (x) {return '1'});
})
Output:
1 ok
Scenario('myTest', async function ({ I }) {
const myList = ['#1', '#2', '#3'];
myList.forEach(function ({ x }) {return '1'});
})
(Note the examples below are not my actual tests but the simplest form in which I could repo the issue.)
Problem:
() => {}or() => returnValuethen the converter does not identify the test as one needing updates.function(arg1) {return returnValue}then the converter converts the args of the inner function too! (which isn't correct)Arrow function example:
Output:
1 unmodified
(no change to test)
function example:
Output:
1 ok