test.each name option compatibility between vitest v0.x and v1.x
0 reputation · 13 Oct 2021, 17:46 UTC
Parameterized tests with test.each are used to generate multiple it blocks from an array of data. In vitest v1.0 a name option was added to customize the generated test case names, while earlier v0.x releases relied on default string interpolation from the data index.
The goal is to understand cross-version behavior when the same test.each definition is evaluated under different vitest major versions. The uncertainty is whether the presence of the name option causes a runtime error in v0.x, and how test naming and case generation are affected when the factory function is evaluated.
Does vitest v0.x reject a test.each call that includes the name option? Which naming fallback is used in v1.x when the name option is omitted? When the factory function throws before a case runs, are subsequent cases still generated under different pool configurations?