Skip to content

Instantly share code, notes, and snippets.

@macku
macku / convert.js
Created November 10, 2019 21:41
A naive happy path QUnit to Jest jscodeshift converter
module.exports = function transformer(file, api) {
const j = api.jscodeshift;
const root = j(file.source);
// Helpers
const wrapExpectExpression = expression => {
if (expression === null) {
return null;
}