Skip to content

Commit

Permalink
Adding back in deleted comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elicwhite committed Jun 19, 2017
1 parent 82fa889 commit a7a5918
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/testUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ const fs = require('fs');
const path = require('path');

function runInlineTest(module, options, input, expectedOutput) {
// Handle ES6 modules using default export for the transform
const transform = module.default ? module.default : module;

// Jest resets the module registry after each test, so we need to always get
// a fresh copy of jscodeshift on every test run.
let jscodeshift = require('./core');
if (module.parser) {
jscodeshift = jscodeshift.withParser(module.parser);
Expand Down

0 comments on commit a7a5918

Please sign in to comment.