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

StripStyles Transformer too agressive #324

Closed
akmjenkins opened this issue Oct 15, 2019 · 1 comment
Closed

StripStyles Transformer too agressive #324

akmjenkins opened this issue Oct 15, 2019 · 1 comment

Comments

@akmjenkins
Copy link

When I run this inside a test file:

  console.log({
    styles: {
      a: 'b',
    },
    stylesB: { a: 'b' },
  });

I get this:

{ styles: [], stylesB: { a: 'b' } }

It makes it impossible for me to make assertions about any generic object (not a component, just a POJO) that has a styles property.

@wtho
Copy link
Collaborator

wtho commented Oct 15, 2019

Duplicate of #254.

Note that this is already fixed in master, but not published yet. You can use "jest-preset-angular": "thymikee/jest-preset-angular" in package.json for using the unpublished version or wait one more week (or so).

Also note that there are several breaking changes in the master branch, so you might have to update your configuration. See the Changelog for migration steps.

@wtho wtho closed this as completed Oct 15, 2019
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

No branches or pull requests

2 participants