Skip to content

Commit e4b4d95

Browse files
committed
perf: trying to improve travis-ci conf
1 parent 37a0187 commit e4b4d95

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
dist: trusty
2-
sudo: required
31
language: node_js
42

53
env:

e2e/__helpers__/test-case.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,16 @@ export function sanitizeOutput(output: string): string {
177177
.trim()
178178
// removes total and estimated times
179179
.replace(
180-
/^(\s*Time\s*:\s*)[\d.]+m?s(?:(,\s*estimated\s+)[\d.]+m?s)?(\s*)$/gm,
181-
(_, start, estimatedPrefix, end) => {
182-
return `${start}XXs${end}`;
180+
/^(\s*Time\s*:\s*)[\d.]+m?s(?:(,\s*estimated\s+)[\d.]+m?s)?$/gm,
181+
(_, start) => {
182+
return `${start}XXs`;
183183
},
184184
)
185+
// remove times after PASS/FAIL path/to/file (xxxs)
186+
.replace(
187+
/^\s*((?:PASS|FAIL) .+) \([\d.]+m?s\)$/gm,
188+
(_, start) => `${start}`,
189+
)
185190
// removes each test time values
186191
.replace(
187192
/^(\s*)(|×||)(\s+[^\(]+)(\s+\([\d.]+m?s\))?$/gm,

0 commit comments

Comments
 (0)