Skip to content

Conversation

@nolanlawson
Copy link
Contributor

See note below about style snapshots.


function cleanStyleElement(elm) {
elm.textContent = elm.textContent.replace(getKnownScopeTokensRegex(), '__lwc_scope_token__');
elm.removeAttribute('data-rendered-by-lwc'); // irrelevant for the snapshot, added by the framework
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An accidental breaking change to snapshots snuck in via salesforce/lwc#3894. Luckily we can trivially remove it from the snapshots; it's not important for component authors anyway.

exports[`renders a basic component and saves formatted snapshot 1`] = `
<x-basic>
<template shadowroot="open">
<template shadowrootmode="open">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nolanlawson nolanlawson merged commit 55dbaf1 into master Feb 1, 2024
@nolanlawson nolanlawson deleted the nolan/deps-20240131 branch February 1, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants