Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions tests/e2e/__snapshots__/overlay.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ exports[`overlay > should not show initially, then show on an error and allow to
"
>
× Module parse failed: ╰─▶ × JavaScript parse error: Unterminated
template literal ╭──── 1 │ \`; · ── ╰──── help: You may need an
appropriate loader to handle this file type.
template literal ╭──── 1 │ \`; ╰──── help: You may need an appropriate
loader to handle this file type.
</div>
</div>
</div>
Expand Down Expand Up @@ -243,8 +243,8 @@ exports[`overlay > should not show initially, then show on an error, then hide o
"
>
× Module parse failed: ╰─▶ × JavaScript parse error: Unterminated
template literal ╭──── 1 │ \`; · ── ╰──── help: You may need an
appropriate loader to handle this file type.
template literal ╭──── 1 │ \`; ╰──── help: You may need an appropriate
loader to handle this file type.
</div>
</div>
</div>
Expand Down Expand Up @@ -373,8 +373,8 @@ exports[`overlay > should not show initially, then show on an error, then show o
"
>
× Module parse failed: ╰─▶ × JavaScript parse error: Unterminated
template literal ╭──── 1 │ \`; · ── ╰──── help: You may need an
appropriate loader to handle this file type.
template literal ╭──── 1 │ \`; ╰──── help: You may need an appropriate
loader to handle this file type.
</div>
</div>
</div>
Expand Down Expand Up @@ -464,8 +464,8 @@ exports[`overlay > should not show initially, then show on an error, then show o
"
>
× Module parse failed: ╰─▶ × JavaScript parse error: Unterminated
template literal ╭──── 1 │ \`;a · ─── ╰──── help: You may need an
appropriate loader to handle this file type.
template literal ╭──── 1 │ \`;a ╰──── help: You may need an appropriate
loader to handle this file type.
</div>
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion tests/e2e/overlay.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ const formatOverlayHtml = (html) =>
formatHtml(
html,
// ANSI-rendered spans differ across platforms, but the text content is stable.
(value) => value.replace(/<\/?span[^>]*>/g, ''),
(value) =>
value
.replace(/<\/?span[^>]*>/g, '')
// swc-next 0.6.1 uses zero-length EOF ranges for these fixtures.
// Normalize the older marker while retaining the diagnostic and source.
.replace(/(1 │ `;a?)\s*· ─+(?=\s*╰────)/g, '$1'),
);

const waitForOverlay = async (page) => {
Expand Down
Loading