backtrack preset for testing node with Jest
npm install @backtrack/preset-jest



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 CI~~ currently disabled
- AppVeyor Windows CI
- Wallaby.js config
- Add pre-push and prepublishOnly testing git hooks
npm install --save-dev @backtrack/preset-jest
``js
// backtrack.config.js
'use strict';
module.exports = {
presets: ['@backtrack/jest'],
};
`
`js
// 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,
},
],
],
};
``