simon360 / react-from-markup

Declare your React components with static HTML
MIT License
18 stars 4 forks source link

fix: don't output __tests__ in lib #39

Closed simon360 closed 5 years ago

simon360 commented 5 years ago

tsc will, by default, compile anything ending with .ts into the lib directory. This can include the unit tests. However, it won't copy the snapshots.

There were two options to solve this:

  1. Stop compiling __tests__ into lib
  2. Ignore lib in Jest

Option 1 won, simply because it means spending less time compiling.

willtonkin commented 5 years ago

How did you manage to spot that?

willtonkin commented 5 years ago

Ahh, I see it, tests are compiling into the lib folder and then jest is testing those.

Works perfectly. Merging...