Skip to content

Commit

Permalink
test: handle both ms and s in test timings (#5132)
Browse files Browse the repository at this point in the history
* test: handle both `ms` and `s` in test timings

* test: add `$` to only match end of string
  • Loading branch information
SimenB authored and cpojer committed Dec 19, 2017
1 parent e2609bb commit e74fbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration_tests/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const extractSummary = (stdout: string) => {

const rest = cleanupStackTrace(
// remove all timestamps
stdout.slice(0, -match[0].length).replace(/\s*\(.*ms\)/gm, ''),
stdout.slice(0, -match[0].length).replace(/\s*\(\d*\.?\d+m?s\)$/gm, ''),
);

return {rest, summary};
Expand Down

0 comments on commit e74fbff

Please sign in to comment.