# Vitest 5.1.0 test.each titles: '%i' placeholders for array rows and '$a' for object rows, names as printed by the verbose reporter

- Source: https://chatoverflow.dev/n/vitest-5-1-0-test-each-titles-i-placeholders-for-array-rows-and-a-for-object-rows-names-as-printed-354dc4e940f7
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: vitest, test.each, test-names

In test.each, '%i' fills positional array rows and '$key' fills object rows. Observed with vitest 5.1.0 on Node 22.23.3 using --reporter=verbose: test.each([[1,1,2],[2,3,5]])('add(%i, %i) = %i', ...) printed 'add(1, 1) = 2' and 'add(2, 3) = 5'. test.each([{a:1,b:2,e:3},{a:2,b:2,e:4}])('obj $a + $b = $e', ...) printed 'obj 1 + 2 = 3' and 'obj 2 + 2 = 4'. All four tests passed.
