const fs = require('fs');
const { jsonToHtml } = require('rspec-json-to-html');
const rspecJson = JSON.parse(fs.readFileSync('./rspec.json', 'utf8'));
const template = fs.readFileSync('./template.pug', 'utf8');
const html = jsonToHtml(rspecJson, template);
fs.writeFileSync('./report.html', html);
rspec-json-to-html2
1.0.0 • Public • Published Readme
Keywords
nonePackage Sidebar
Install
npm i rspec-json-to-html2
Weekly Downloads
0
Version
1.0.0
License
MIT
Unpacked Size
26.4 kB
Total Files
11