···11+# @vitest/coverage-v8
22+33+[](https://www.npmjs.com/package/@vitest/coverage-v8)
44+55+Vitest coverage provider that supports native code coverage via [v8](https://v8.dev/blog/javascript-code-coverage).
66+77+## Installation
88+99+After installing the package, specify `v8` in the `coverage.provider` field of your Vitest configuration (or leave it empty as it is the default provider):
1010+1111+```ts
1212+// vitest.config.ts
1313+import { defineConfig } from 'vitest/config'
1414+1515+export default defineConfig({
1616+ test: {
1717+ coverage: {
1818+ provider: 'v8',
1919+ },
2020+ },
2121+})
2222+```
2323+2424+Then run Vitest with coverage:
2525+2626+```sh
2727+npx vitest --coverage
2828+```
2929+3030+[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/coverage-v8) | [Documentation](https://vitest.dev/guide/coverage)
···11# @vitest/runner
2233-Vitest mechanism to collect and run tasks.
33+[](https://www.npmjs.com/package/@vitest/runner)
4455-[GitHub](https://github.com/vitest-dev/vitest) | [Documentation](https://vitest.dev/advanced/runner)
55+Vitest mechanism to collect and run tests.
66+77+[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/runner) | [Documentation](https://vitest.dev/api/advanced/runner)
···11+At project root, create terminals with each of the following commands:
22+33+```bash
44+nr ui:dev
55+```
66+77+```bash
88+nr test --api
99+```
1010+1111+As the last command, you can use any of the available tests suites instead. Make sure that they run at 51204 port or specify a custom port with `VITE_PORT` environmental variable when running the first command. For example,
1212+1313+```bash
1414+VITE_PORT=3200 nr ui:dev
1515+```
1616+1717+```bash
1818+nr test --api=3200
1919+```
2020+2121+Open the browser at the URL printed by the first command. For example, `http://localhost:5173/`. If you see a connection error, it means the port is specified incorrectly.
2222+2323+To preview the browser tab, uncomment the "browser-dev-preview" plugin in `vite.config.ts`.
2424+2525+To configure the browser state, update the `__vitest_browser_runner__` object in `browser.dev.js`.
+3-27
packages/ui/README.md
···11# @vitest/ui
2233-This package is for UI interface of Vitest.
33+[](https://www.npmjs.com/package/@vitest/ui)
4455-## Development Setup
55+See your test results in the browser.
6677-At project root, create terminals with each of the following commands:
88-99-```bash
1010-nr ui:dev
1111-```
1212-1313-```bash
1414-nr test --api
1515-```
1616-1717-As the last command, you can use any of the available tests suites instead. Make sure that they run at 51204 port or specify a custom port with `VITE_PORT` environmental variable when running the first command. For example,
1818-1919-```bash
2020-VITE_PORT=3200 nr ui:dev
2121-```
2222-2323-```bash
2424-nr test --api=3200
2525-```
2626-2727-Open the browser at the URL printed by the first command. For example, `http://localhost:5173/`. If you see a connection error, it means the port is specified incorrectly.
2828-2929-To preview the browser tab, uncomment the "browser-dev-preview" plugin in `vite.config.ts`.
3030-3131-To configure the browser state, update the `__vitest_browser_runner__` object in `browser.dev.js`.
77+[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/ui) | [Documentation](https://vitest.dev/guide/ui)
···11+# @vitest/utils
22+33+[](https://www.npmjs.com/package/@vitest/utils)
44+55+Internal shared utilities used by other Vitest packages.
66+77+[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/utils) | [Documentation](https://vitest.dev/)
···11# @vitest/web-worker
2233+[](https://www.npmjs.com/package/@vitest/web-worker)
44+35> Web Worker support for Vitest testing. Doesn't require JSDom.
4657Simulates Web Worker, but in the same thread.
···8890- Transferring Buffer will not change its `byteLength`.
8991- You have access to shared global space as your tests.
9092- You can debug your worker, using `DEBUG=vitest:web-worker` environmental variable.
9393+9494+[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/web-worker) | [Documentation](https://vitest.dev/)