Skip to content

Commit

Permalink
add comment about filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 25, 2018
1 parent 4d78958 commit 3d28fb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jest-cli/src/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ export const runCLI = async (

const stacks = new Set();

// E.g. timeouts might give multiple traces to the same line of code
// This hairy filtering tries to remove entries with duplicate stack traces
const uniqueErrors = formatted.filter(handle => {
const ansiFree: string = stripAnsi(handle);

Expand Down

0 comments on commit 3d28fb1

Please sign in to comment.