@tsdoc-test-reporter/jest
v0.0.33
Published
TSDoc Test Reporter for Jest
Downloads
26
Readme
@tsdoc-test-reporter/jest
TSDoc Test Reporter for Jest
Installing
npm install @tsdoc-test-reporter/jest
Usage
Basic
- Add reporter to your jest config (
jest.config.js
)
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
reporters: ['default', '@tsdoc-test-reporter/jest'],
};
- 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
- Open the newly generated file
tsdoc-test-reporter-report.html
in the browser of your choice
Testing
pnpm nx test jest