added a function to resolve the string interpolation in test names, replacing variable name, printf patterns with regex match all expression.
Added and updated tests for findFullTestName function.
for example, for test name
"check result should be ${expected}"
since the variable will be resolved at run time, so using -t with the variable name will not match the test, so this PR added a function to convert it to
"check result should be (.*?)"
A more specific case: say when i am running the following test.
before change
because the variable in the test name , jest fail to find matching test case.
for example, for test name "check result should be ${expected}" since the variable will be resolved at run time, so using -t with the variable name will not match the test, so this PR added a function to convert it to "check result should be (.*?)"
A more specific case: say when i am running the following test.
before change
because the variable in the test name , jest fail to find matching test case.
after change