Closed simon360 closed 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.
tsc
.ts
lib
There were two options to solve this:
__tests__
Option 1 won, simply because it means spending less time compiling.
How did you manage to spot that?
Ahh, I see it, tests are compiling into the lib folder and then jest is testing those.
Works perfectly. Merging...
tsc
will, by default, compile anything ending with.ts
into thelib
directory. This can include the unit tests. However, it won't copy the snapshots.There were two options to solve this:
__tests__
intolib
lib
in JestOption 1 won, simply because it means spending less time compiling.