@tsdoc-test-reporter/vitest
v0.0.33
Published
TSDoc Test Reporter for Vitest
Downloads
4
Readme
@tsdoc-test-reporter/vitest
TSDoc Test Reporter for Vitest
Installing
npm install @tsdoc-test-reporter/vitest
Usage
- Add reporter to config (
vite.config.ts
)
/// <reference types="vitest" />
import { defineConfig } from 'vite';
export default defineConfig({
test: {
reporters: ['@tsdoc-test-reporter/vitest'],
},
});
- Add TSDoc comments to a test of your choice:
/**
* @remarks WCAG Criteria
*/
test('get correct background color based on text color', () => {
expect(true).toBe(true);
});
- Run tests (
vitest run
) - Open the newly generated file
tsdoc-test-reporter-report.html
in the browser of your choice
Testing
pnpm nx test vitest