Replies: 4 comments 4 replies
-
Do you think we could jest mock certain modules to essentially nullify them, so any import would cause an error? |
Beta Was this translation helpful? Give feedback.
-
Idea 2: Actually write a small webpack-built program (or a few programs) which test different imports and check the output for certain things that shouldn't be there (e.g. if it only imports |
Beta Was this translation helpful? Give feedback.
-
Idea 3: Import graph analysis. This is pretty straightforward and I think relatively easy to do in a Jest test, but it might not reflect the reality of the actual tree-shaking performed by build tools. |
Beta Was this translation helpful? Give feedback.
-
Container idea: Github action to spin up a toy project with a ts-node script that only has fp-ts/io-ts as a dep (not fast-check) and tries to run each of the interpreters (besides arbitrary) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
No idea how to do this at the moment but we should make some tests to ensure that tree shaking works (and doesn't stop working accidentally)
(related to #187)
Beta Was this translation helpful? Give feedback.
All reactions