backtrack
preset that adds Jest to your project.
- Configure Jest
- jest-serializer-path to normalize paths inside snapshots
- jest-snapshot-serializer-function-name to add function names inside snapshots
CircleCI Linux CIcurrently disabled- AppVeyor Windows CI
- Wallaby.js config
- Add
pre-push
andprepublishOnly
testing git hooks
npm install --save-dev @backtrack/preset-jest
// backtrack.config.js
'use strict';
module.exports = {
presets: ['@backtrack/jest'],
};
// backtrack.config.js
'use strict';
module.exports = {
presets: [
[
'@backtrack/jest',
{
/**
* Disable testing on Windows
*
* module default: true
* app default: false
*/
windows: false,
/**
* Disable settings unnecessary in applications
*
* default: false
*/
isApp: true,
/**
* prepublishOnly testing hook
*
* module default: true
* app default: false
*/
prepublishOnly: false,
},
],
],
};