Unverified Commit bd393357 authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

`toDisplayRedbox()`: replace all occurrences of testDir (#76618)

Currently we only replace the first occurrence with
`String.prototype.replace()`. This uses `replaceAll` to replace all
occurrences.
    
Test Plan: See next PR in this stack for use.
parent 514e9b35
...@@ -136,7 +136,7 @@ async function createRedboxSnapshot( ...@@ -136,7 +136,7 @@ async function createRedboxSnapshot(
focusedSource = focusedSource.trim() focusedSource = focusedSource.trim()
if (next !== null) { if (next !== null) {
focusedSource = focusedSource.replace( focusedSource = focusedSource.replaceAll(
next.testDir, next.testDir,
'<FIXME-project-root>' '<FIXME-project-root>'
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment