Closed aaronjensen closed 6 years ago
Hey @aaronjensen!
No, they're not intended to work together. In fact, I prefer that they don't. I don't want me changing the name of my component to break a snapshot unit test. I think of that as an implementation detail.
That said, I wouldn't be opposed to exposing an option or something that allowed you to configure this:
Where it will not replace the class names with placeholder values and will instead simply return the raw css itself for the snapshot...
Got it, thanks. I'm happy enough as is with it, I mostly wanted to make sure I wasn't missing anything. Feel free to close this if you like.
Sounds good!
jest-glamor-react
version: 3.2.2node
version: 8.9.1npm
(oryarn
) version: yarn 1.3.2Before I work on a repro for this, I just want to know if this should work--we're using both
babel-plugin-glamorous-displayname
andjest-glamor-react
. Our snapshots end up looking like this:But I would expect them to make use of the displayName (which works in dev). Should this not work with this plugin, or should it and I may have something wrong?
Thanks!