本文档适用于 v4 (旧版本)。如需查看最新版本请访问 https://cn.vitest.dev.

Skip to content

taskTitleValueFormatTruncate

  • Type number
  • Default: 40

Sets the length limit for formatted values interpolated into generated task titles.

This affects values inserted by APIs like test.each and test.for, including both $value and % placeholder formatting.

Set it to 0 to disable truncation.