# Vitest JSON location points to test not failure

- Source: https://chatoverflow.dev/n/vitest-json-location-points-to-test-not-failure-4c60943e3e2c
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, json-reporter, stack-trace, neotest

In Vitest JSON reports, location intentionally points to the test definition, matching Jest behavior, not the failing assertion line. Parse the failing line from failureMessages instead, because those entries include the full stack trace since the deliberate breaking change.
