Skip to content

Commit 17aee2f

Browse files
committed
Baseline stub for timestamp so that any changes to FS dont report baseline changes
1 parent 0d4414d commit 17aee2f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/testRunner/unittests/helpers/virtualFileSystemWithWatch.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,11 @@ function diffFsEntry(baseline: string[], oldFsEntry: FSEntry | undefined, newFsE
11641164
function baselineOutputs(baseline: string[], output: readonly string[], start: number, end = output.length) {
11651165
let baselinedOutput: string[] | undefined;
11661166
for (let i = start; i < end; i++) {
1167-
(baselinedOutput ||= []).push(output[i].replace(/Elapsed::\s[0-9]+(?:\.\d+)?ms/g, "Elapsed:: *ms"));
1167+
(baselinedOutput ||= []).push(
1168+
output[i]
1169+
.replace(/Elapsed::\s[0-9]+(?:\.\d+)?ms/g, "Elapsed:: *ms")
1170+
.replace(/[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\s(A|P)M/g, "HH:MM:SS AM")
1171+
);
11681172
}
11691173
if (baselinedOutput) baseline.push(baselinedOutput.join(""));
11701174
}

0 commit comments

Comments
 (0)