rspieker / jest-transform-svelte

Jest Transformer for Svelte components
35 stars 7 forks source link

Illustrate caching issue #5

Open eps1lon opened 5 years ago

eps1lon commented 5 years ago

This is more of an issue report but with a full example to better illustrate the issue.

Have you given some thought to how we force jest to run the transformer again on every file that is affected by a change?

Imagine this case:

jest --no-cache does only work if you run it on all tests. Once you add a pattern to it or let it run only on changed files we observe the same behavior as with cache.

It is not an issue with jest not re-running. If I only run Compound.spec.js it will still re-run if I make changes to Sample.svelte.