Skip to content

Instantly share code, notes, and snippets.

View blacroix's full-sized avatar

Benjamin Lacroix blacroix

View GitHub Profile
@Prophet32j
Prophet32j / jest-mocha-awesome.js
Last active March 15, 2022 17:47
Jest test output to mocha awesome converter
const marge = require('mochawesome-report-generator');
const fs = require('fs');
const path = require('path');
const uuid = require('uuid-v4');
module.exports = (testResults) => {
const margeInput = buildMargeInput(testResults);
marge.create(margeInput)
.then(function() {