···417417Since Vitest 3, the JSON reporter includes coverage information in `coverageMap` if coverage is enabled.
418418:::
419419420420+The `meta` field in each assertion result can be filtered via the `filterMeta` reporter option. It receives the key and value of each field and should return a falsy value to exclude the field from the report:
421421+422422+```ts
423423+export default defineConfig({
424424+ test: {
425425+ reporters: [
426426+ ['json', {
427427+ filterMeta: (key, value) => key !== 'internalField',
428428+ }]
429429+ ]
430430+ },
431431+})
432432+```
433433+420434### HTML Reporter
421435422436Generates an HTML file to view test results through an interactive [GUI](/guide/ui). After the file has been generated, Vitest will keep a local development server running and provide a link to view the report in a browser.
+5
test/cli/fixtures/reporters/json-meta.test.ts
···11+import { expect, test } from 'vitest'
22+33+test('pass', ({ task }) => {
44+ task.meta.custom = 'Passing test added this'
55+})