2.0.2 • Published 4 years ago
ember-cli-update-reporter v2.0.2
ember-cli-update-reporter
A utility to patch testem.js to use a specific reporter and reporting options.
Install
yarn add ember-cli-update-reporter
Example
const updater = require('ember-cli-update-reporter');
const updatedCode = updater('module.exports = { /* ... */ };', { reporter: 'xunit', report_file: 'test_results.xml' });
updateCode === `module.exports = { reporter: "xunit", report_file: "build/test_results.xml" };`
Usage
update(testemJsContent: string, reporterOptions: Object<string, {string | boolean}>): string;