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

[TECH] Fix styled-jsx not being transpiled when running tests #15

Closed
sobstel opened this issue Apr 11, 2020 · 1 comment
Closed

[TECH] Fix styled-jsx not being transpiled when running tests #15

sobstel opened this issue Apr 11, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@sobstel
Copy link
Owner

sobstel commented Apr 11, 2020

❯ yarn test test/components/
yarn run v1.22.4
$ jest test/components/
 PASS  test/components/Page/Match.test.tsx (5.011s)
  MatchPage
    ✓ works (56ms)

  console.error node_modules/react-dom/cjs/react-dom.development.js:88
    Warning: Received `true` for a non-boolean attribute `jsx`.

    If you want to write it to the DOM, pass a string instead: jsx="true" or jsx={value.toString()}.
        in style (created by Info)
        in div (created by Info)
        in div (created by Info)
        in Info (created by MatchPage)
        in div (created by Layout)
        in div (created by Layout)
        in div (created by Layout)
        in div (created by Layout)
        in Layout (created by MatchPage)
        in MatchPage

This error means jsx was not transpiled at all.

@sobstel sobstel added the bug Something isn't working label Apr 11, 2020
@sobstel
Copy link
Owner Author

sobstel commented May 7, 2020

Fixed

@sobstel sobstel closed this as completed May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant