New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: replacment string for index of the test case for .each
is wrong in documentation
#12291
Comments
@essenmitsosse I cannot reproduce with your snippet, could you provide a reproduced github repo?
Environment
|
I am sorry, the test I posted, actually didn't produce the error, here is a reproduction that shows it: test.each(['A', 'B', 'C'])(
'This is working: %#',
() => expect(true).toMatchSnapshot()
)
test.each([{ NAME: 'A' }, { NAME: 'B' }, { NAME: 'C' }])(
'This is not working: %#',
() => expect(true).toMatchSnapshot()
) The problem only seems to occur, when Reproduction Repo: essenmitsosse/jest-test-index-reproduction |
@essenmitsosse It's fixed. thanks for your report. I am willing to help if you have any problems with this issue. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
27.4.5
Steps to reproduce
According to the documentation:
But it isn't working and the reason is, that the actual implementation expects
$#
instead of%#
Expected behavior
Either the documentation to be correct or
%#
to be working. Or both to preserve backwards comptability.Actual behavior
%#
is not replaced and remains as is, in the title string.Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: