Bugshot is a testing tool for React/TypeScript/Jest applications that finds issues in unit-tests. It's a second layer for unit-testing: uses fault-injection techique, monitors for false-negatives and alarm you when your unit-test doesn't test good enough.
npm install --save-dev git+https://github.com/mrac/bugshot.git
./bin/bugshot.js --config=./path/to/my/bugshot.config.js
A single component file.
./bin/bugshot.js --config=./path/to/my/bugshot.config.js --t=my-text-area
A single component parameter.
./bin/bugshot.js --config=./path/to/my/bugshot.config.js --t=my-text-area --p=children
module.exports = {
baseDir: "../..",
jestConfig: "./path/to/my/jest.config.js",
sourceFiles: "./src/client/components/common/**/*.tsx",
ignore: [
"./src/client/components/common/**/*.story.tsx",
"./src/client/components/common/**/*-styles.{ts,tsx}"
]
};