@barney-media/crap-typescript-vitest
v0.2.3
Published
Vitest integration for crap-typescript.
Maintainers
Readme
@barney-media/crap-typescript-vitest
Vitest adapter for crap-typescript. Enables Istanbul JSON coverage output and reports CRAP scores after test runs.
Install
npm install --save-dev @barney-media/crap-typescript-vitestSetup
const { withCrapTypescriptVitest } = require("@barney-media/crap-typescript-vitest");
module.exports = withCrapTypescriptVitest({
test: {
include: ["test/**/*.test.ts"]
}
});withCrapTypescriptVitest wraps your Vitest config to enable coverage collection and register the CRAP reporter. The test run fails when any function exceeds the CRAP threshold.
See the main documentation for full details.
