@barney-media/cognitive-typescript-jest
v0.1.1
Published
Jest integration for cognitive-typescript.
Maintainers
Readme
@barney-media/cognitive-typescript-jest
Jest adapter for cognitive-typescript. It runs Cognitive Complexity analysis after the test run and fails the process when the fixed threshold is exceeded.
Install
npm install --save-dev @barney-media/cognitive-typescript-jest jestSetup
const { withCognitiveTypescriptJest } = require("@barney-media/cognitive-typescript-jest");
module.exports = withCognitiveTypescriptJest(
{
testEnvironment: "node"
},
{
changedOnly: false
}
);Supported options:
projectRootchangedOnlypathsstdoutstderr
The package also exports CognitiveTypescriptJestReporter for direct reporter registration.
See the main repository for full details.
