Skip to content

Commit e74fbff

Browse files
SimenBcpojer
authored andcommitted
test: handle both ms and s in test timings (#5132)
* test: handle both `ms` and `s` in test timings * test: add `$` to only match end of string
1 parent e2609bb commit e74fbff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration_tests/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const extractSummary = (stdout: string) => {
148148

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

154154
return {rest, summary};

0 commit comments

Comments
 (0)