Factory for constructing js approvals configurations
npm install approvals-config-factory
const approvalsLocation = './test/approvals';
const approvalsConfigFactory = require('approvals-config-factory');
const approvalsConfig = approvalsConfigFactory.buildApprovalsConfig({
reporter: 'kdiff3'
});
require('approvals').configure(approvalsConfig).mocha(approvalsLocation);
`
API: ##
- buildApprovalsConfig -- approvalsOptions => approvalsConfig:object,
- Just pass in an object with a reporter and it will create a sane config
- getApprovalsOptionsDefinition will give you the full rundown of all options
- getApprovalsOptionsDefinition: () => approvalsOptionsDefinition:object,
- The object you get will tell you everything you need to know about the properties you can define
- getApprovalsReporterDefinition: () => approvalsReporterDefinition:object`