Skip to content

Commit

Permalink
Do not render __tests__ modules
Browse files Browse the repository at this point in the history
  • Loading branch information
crucialfelix committed Jan 9, 2020
1 parent 0a3f3df commit 8438a8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/render-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ const nodeSummary = node => `${kindString(node.kindString)} ${node.name}`;
const stripQuotes = str => str && str.replace(/"/g, "");

const ExternalModule = node => {
// if __tests__ in node.name then ignore
if (/__tests__/.exec(node.name)) {
return "";
}

const name = stripQuotes(node.name);

if (node.children) {
Expand Down

0 comments on commit 8438a8b

Please sign in to comment.