Closed as not planned
Description
🐛 Bug Report
Creating a snapshot with array + matchers is not possible without wrapping array into an object.
To Reproduce
expect(['foo']).toMatchInlineSnapshot([expect.any(String)]);
Expected behavior
expect(['foo']).toMatchInlineSnapshot([expect.any(String)], `
Array [
Any<String>,
]
`);
Actual behavior
expect(['foo']).toMatchInlineSnapshot([expect.any(String)], `
Object {
"0": "foo",
}
`);
I'm able to get by by taking my result and placing it in an object then doing the snapshot, but I feel like I should be able to snapshot an actual array with matchers.