@barney-media/crap-typescript-jest
v0.2.3
Published
Jest integration for crap-typescript.
Downloads
466
Maintainers
Readme
@barney-media/crap-typescript-jest
Jest 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-jestSetup
const { withCrapTypescriptJest } = require("@barney-media/crap-typescript-jest");
module.exports = withCrapTypescriptJest({
testEnvironment: "node"
});withCrapTypescriptJest wraps your Jest config to enable coverage collection and register the CRAP reporter. The test run fails when any function exceeds the CRAP threshold.
The reporter is also available as a standalone export at @barney-media/crap-typescript-jest/reporter for direct configuration.
See the main documentation for full details.
