1.0.5 • Published 10 months ago

vitest-tiny-reporter v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

vitest-tiny-reporter

npm npm bundle size NPM npm GitHub issues semantic-release: angular

vitest-tiny-reporter is a minimal reporter for Vitest that provides the most essential information about the test run. This is very useful with tools like lefthook that run several checks in parallel, where you want to see the test results without scrolling through a lot of output.

Installation

npm install --save vitest-tiny-reporter

Usage

You can specify the reporter in your vitest.config.ts:

import type { UserConfig } from 'vitest/config';
import TinyReporter from 'vite-tiny-reporter';

export default {
  test: {
    reporters: [new TinyReporter()],
  },
} satisfies UserConfig;

Or you can use the reporter from the command line:

vitest --reporter vitest-tiny-reporter

Output

The output will look like this:

$ vitest
 ✖ FAIL  1 test failed
 Test Files  1 failed (1)
      Tests  1 failed | 10 passed (11)
1.0.5

10 months ago

1.0.4

11 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago