{"_id":"@brittlehq/vitest-reporter","_rev":"3-e6a7e7b4b64ee139d6c8621b24231b92","name":"@brittlehq/vitest-reporter","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@brittlehq/vitest-reporter","version":"0.1.0","keywords":["brittle","vitest","reporter","test","testing","ci"],"license":"Apache-2.0","_id":"@brittlehq/vitest-reporter@0.1.0","maintainers":[{"name":"sudharsan-selvaraj","email":"sudharsanselvaraj.c@gmail.com"}],"homepage":"https://brittle.dev","bugs":{"url":"https://github.com/brittlehq/brittle/issues"},"dist":{"shasum":"e2cf23e901174958afc5cfedd37b6d9c650a613e","tarball":"https://registry.npmjs.org/@brittlehq/vitest-reporter/-/vitest-reporter-0.1.0.tgz","fileCount":11,"integrity":"sha512-7UhD1mhhRC3KKhtfxsha2kIlz8crKlYazhxHULF7froYRzAlMeOa3n3/xZR2ENqDf64IVtrpIqkaeLiBWtS5tw==","signatures":[{"sig":"MEUCIAjNw+8aF3ZLSiaZnCkRDMTW+rkkpuz7r1llsnAR/HRbAiEA7ZEX//kuDjPSyMr3GLdEeGc41fC5EIBoYYxmryxNmDk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31822},"main":"./dist/index.js","type":"module","_from":"file:brittlehq-vitest-reporter-0.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc -b","clean":"rm -rf dist .tsbuild*","typecheck":"tsc -b"},"_npmUser":{"name":"sudharsan-selvaraj","email":"sudharsanselvaraj.c@gmail.com"},"_resolved":"/private/var/folders/7d/35flldkd1m12mzfw9r8wjht00000gn/T/cf75a61f9988b4b3eb84281101c3eb55/brittlehq-vitest-reporter-0.1.0.tgz","_integrity":"sha512-7UhD1mhhRC3KKhtfxsha2kIlz8crKlYazhxHULF7froYRzAlMeOa3n3/xZR2ENqDf64IVtrpIqkaeLiBWtS5tw==","repository":{"url":"git+https://github.com/brittlehq/brittle.git","type":"git","directory":"packages/vitest-reporter"},"_npmVersion":"10.8.2","description":"Brittle reporter for Vitest — streams test results to the Brittle Hub in real time","directories":{},"_nodeVersion":"20.19.4","dependencies":{"@brittlehq/shared":"0.1.0","@brittlehq/reporter-core":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6"},"peerDependencies":{"vitest":">=2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-reporter_0.1.0_1779525587431_0.012115708910054312","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@brittlehq/vitest-reporter","version":"0.1.1","keywords":["brittle","vitest","reporter","test","testing","ci"],"license":"Apache-2.0","_id":"@brittlehq/vitest-reporter@0.1.1","maintainers":[{"name":"sudharsan-selvaraj","email":"sudharsanselvaraj.c@gmail.com"}],"homepage":"https://brittle.dev","bugs":{"url":"https://github.com/brittlehq/brittle/issues"},"dist":{"shasum":"773a09125e7052236d2438a13175aef9377609d5","tarball":"https://registry.npmjs.org/@brittlehq/vitest-reporter/-/vitest-reporter-0.1.1.tgz","fileCount":11,"integrity":"sha512-cytwp8fCgUfHb1//PYvu8z6wscjjCpTw5nK/Qaq3xLkuZ7PYnaGsH2kHDgm6W39U7x773XEM7/Fj3pYleNl/gQ==","signatures":[{"sig":"MEYCIQC5jewoiWIXS7/hYTCPCstE/H2h+p5aDsQAa78u7hwLyAIhAOgKLurCuhlb4K1Yi2yFp2nrHfwrLzGCWXAw/f7p0YgB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@brittlehq%2fvitest-reporter@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32112},"main":"./dist/index.js","type":"module","_from":"file:brittlehq-vitest-reporter-0.1.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc -b","clean":"rm -rf dist .tsbuild*","typecheck":"tsc -b"},"_npmUser":{"name":"sudharsan-selvaraj","email":"sudharsanselvaraj.c@gmail.com"},"_resolved":"/tmp/785478d83261b9ebbf519f85554e8527/brittlehq-vitest-reporter-0.1.1.tgz","_integrity":"sha512-cytwp8fCgUfHb1//PYvu8z6wscjjCpTw5nK/Qaq3xLkuZ7PYnaGsH2kHDgm6W39U7x773XEM7/Fj3pYleNl/gQ==","repository":{"url":"git+https://github.com/brittlehq/brittle.git","type":"git","directory":"packages/vitest-reporter"},"_npmVersion":"10.8.2","description":"Brittle reporter for Vitest — streams test results to the Brittle Hub in real time","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@brittlehq/shared":"0.2.0","@brittlehq/reporter-core":"0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6"},"peerDependencies":{"vitest":">=2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vitest-reporter_0.1.1_1779554814938_0.1674981309331005","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@brittlehq/vitest-reporter","version":"0.1.2","description":"Brittle reporter for Vitest — streams test results to the Brittle Hub in real time","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"dependencies":{"@brittlehq/reporter-core":"0.1.2","@brittlehq/shared":"0.2.0"},"peerDependencies":{"vitest":">=2.0.0"},"devDependencies":{"vitest":"^4.1.6"},"engines":{"node":">=20"},"keywords":["brittle","vitest","reporter","test","testing","ci"],"license":"Apache-2.0","homepage":"https://brittle.dev","repository":{"type":"git","url":"git+https://github.com/brittlehq/brittle.git","directory":"packages/vitest-reporter"},"bugs":{"url":"https://github.com/brittlehq/brittle/issues"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc -b","typecheck":"tsc -b","clean":"rm -rf dist .tsbuild*"},"_id":"@brittlehq/vitest-reporter@0.1.2","_integrity":"sha512-CwjodrtaWv8VWoJG6s8/2xS5TAts8iws6dlxdODhg+Na+KWlHMqXkE5MjoVXHDs7TllMeU7ZpiyfhqyjMGrDHQ==","_resolved":"/tmp/09f8f1250762cb71b5cdd7035974af27/brittlehq-vitest-reporter-0.1.2.tgz","_from":"file:brittlehq-vitest-reporter-0.1.2.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-CwjodrtaWv8VWoJG6s8/2xS5TAts8iws6dlxdODhg+Na+KWlHMqXkE5MjoVXHDs7TllMeU7ZpiyfhqyjMGrDHQ==","shasum":"b6fc0b6fc7c04eff0f88c3d0303c00876bcd5a33","tarball":"https://registry.npmjs.org/@brittlehq/vitest-reporter/-/vitest-reporter-0.1.2.tgz","fileCount":11,"unpackedSize":32112,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@brittlehq%2fvitest-reporter@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD6HZGvEguFq0pQLrpDw2ELmxwWVsb8505DKWqpeEApVQIhAImGAiscLzOYmiNEFxWl5APe/xJFjexTvq9dGz9x6968"}]},"_npmUser":{"name":"sudharsan-selvaraj","email":"sudharsanselvaraj.c@gmail.com"},"directories":{},"maintainers":[{"name":"sudharsan-selvaraj","email":"sudharsanselvaraj.c@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vitest-reporter_0.1.2_1779558215999_0.05602949553961345"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-23T08:39:47.298Z","modified":"2026-05-23T17:43:36.760Z","0.1.0":"2026-05-23T08:39:47.581Z","0.1.1":"2026-05-23T16:46:55.079Z","0.1.2":"2026-05-23T17:43:36.139Z"},"bugs":{"url":"https://github.com/brittlehq/brittle/issues"},"license":"Apache-2.0","homepage":"https://brittle.dev","keywords":["brittle","vitest","reporter","test","testing","ci"],"repository":{"type":"git","url":"git+https://github.com/brittlehq/brittle.git","directory":"packages/vitest-reporter"},"description":"Brittle reporter for Vitest — streams test results to the Brittle Hub in real time","maintainers":[{"name":"sudharsan-selvaraj","email":"sudharsanselvaraj.c@gmail.com"}],"readme":"# @brittlehq/vitest-reporter\n\nStream Vitest test results to [Brittle](https://brittle.dev) — failure\ntriage, AI-grouped errors, flake history — without changing how your tests\nrun.\n\n## Install\n\n```bash\npnpm add -D @brittlehq/vitest-reporter\n# or: npm i -D @brittlehq/vitest-reporter\n# or: yarn add -D @brittlehq/vitest-reporter\n```\n\n## Configure\n\nAdd the reporter to `vitest.config.ts`:\n\n```ts\nimport { defineConfig } from 'vitest/config';\nimport BrittleReporter from '@brittlehq/vitest-reporter';\n\nexport default defineConfig({\n  test: {\n    reporters: [\n      'default',\n      new BrittleReporter({\n        url: process.env.BRITTLE_URL,\n        token: process.env.BRITTLE_TOKEN,\n      }),\n    ],\n  },\n});\n```\n\nSet the env vars in your shell or CI:\n\n```bash\nexport BRITTLE_URL=https://brittle.dev          # or your self-hosted hub\nexport BRITTLE_TOKEN=brt_svc_xxxxxxxxxxxxxxxx   # mint at Project → Settings → Tokens\n```\n\n## All options\n\n```ts\n{\n  url?: string;              // defaults to process.env.BRITTLE_URL\n  token?: string;            // defaults to process.env.BRITTLE_TOKEN\n  runName?: string;          // groups parallel workers into one Run row\n  target?: string;           // 'prod' / 'staging' / app version label\n  tags?: string[];           // e.g. ['unit', 'nightly']\n  // Explicit git overrides\n  branch?: string;\n  commitSha?: string;\n  commitMessage?: string;\n  prUrl?: string;\n}\n```\n\nGit context (branch, commit, PR) is auto-detected from the working tree.\n\n## Run\n\n```bash\npnpm exec vitest run\n```\n\n## Debug logging\n\nThe reporter is quiet by default — only warnings print to stderr. To see verbose debug output (per-test events, retry attempts, individual API calls), set:\n\n```bash\nexport BRITTLE_DEBUG=1\n```\n\nUseful when triaging \"test ran but didn't show up in the dashboard\" issues.\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}