vitest-slow-test-reporter
v0.0.2
Published
Vitest reporter for identifying slow tests
Downloads
157
Readme
vitest-slow-test-reporter
Vitest reporter for identifying slow tests
Usage
Pre-Setup
- If you do not already have it installed, install
vitest
Setup
Install vitest-slow-test-reporter:
npm i --save-dev vitest-slow-test-reporter
oryarn add -D vitest-slow-test-reporter
Use
vitest-slow-test-reporter
by calling vitest with reporter flag:npx vitest --reporter=vitest-slow-test-reporter
or add vitest-slow-test-reporter to your config in
vitest.config.js
:import { defineConfig } from 'vitest/config'; import { VitestSlowTestReporter } from 'vitest-slow-test-reporter' export default defineConfig({ test: { reporters: [new VitestSlowTestReporter()], }, });