Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jest-serializer): handles whitespaces better #264

Merged
merged 2 commits into from
Oct 27, 2022

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Oct 27, 2022

#260 added support for classes generated by makeResetStyles, the problem is that whitespaces were still present in output:

image

This PR fixes it.

@github-actions
Copy link

github-actions bot commented Oct 27, 2022

📊 Bundle size report

🤖 This report was generated against 61f2f0dbd26713e4c654f2e4726cd59571f0b8d7

@layershifter layershifter marked this pull request as ready for review October 27, 2022 09:23
@layershifter layershifter requested a review from a team as a code owner October 27, 2022 09:23
import { makeResetStyles, makeStyles, mergeClasses, TextDirectionProvider } from '@griffel/react';
import { render } from '@testing-library/react';

import { print, test } from './index';
import { renderIntoDocument } from 'react-dom/test-utils';
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: unused import

@layershifter layershifter merged commit 2365bed into microsoft:main Oct 27, 2022
@layershifter layershifter deleted the fix/jest-whitespaces branch October 27, 2022 11:23
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.

2 participants