Closed layershifter closed 4 months ago
Regex there:
https://github.com/microsoft/griffel/blob/ec2b486b0e651f32a18a60f17d5a01b760febba5/packages/jest-serializer/src/index.ts#L59
Does not match as expected:
toString is a property on an object, check is not enough good there:
toString
https://github.com/microsoft/griffel/blob/ec2b486b0e651f32a18a60f17d5a01b760febba5/packages/jest-serializer/src/index.ts#L66
Only one trailing space gets removed:
<div class="class-reset-a class-reset-b"> <div class="class-a class-b "></div> <!-- ⬅️ oops --> </div>
Trailing space is not removed when there are other attributes
Regex there:
https://github.com/microsoft/griffel/blob/ec2b486b0e651f32a18a60f17d5a01b760febba5/packages/jest-serializer/src/index.ts#L59
Does not match as expected:
False positives
toString
is a property on an object, check is not enough good there:https://github.com/microsoft/griffel/blob/ec2b486b0e651f32a18a60f17d5a01b760febba5/packages/jest-serializer/src/index.ts#L66
Trailing space is not removed when markup has multiple elements
Only one trailing space gets removed: