Skip to content

Commit

Permalink
chore(package-graph): Add inspect helper to workaround Jest bug
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Jan 18, 2019
1 parent ef33cb7 commit f0e3dba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/package-graph/__tests__/package-graph.test.js
Expand Up @@ -151,3 +151,11 @@ describe("PackageGraph", () => {
});
});
});

// eslint-disable-next-line no-unused-vars
function deepInspect(obj) {
// jest console mutilates console.dir() options argument,
// so sidestep it by requiring the non-shimmed method directly.
// eslint-disable-next-line global-require
require("console").dir(obj, { depth: 10, compact: false });
}

0 comments on commit f0e3dba

Please sign in to comment.