testing-library / svelte-testing-library

:chipmunk: Simple and complete Svelte DOM testing utilities that encourage good testing practices
https://testing-library.com/docs/svelte-testing-library/intro
MIT License
620 stars 33 forks source link

Failed to test other ts files with jest and @testing-library/svelte4. #336

Closed tanxukun closed 7 months ago

tanxukun commented 8 months ago

Beacause @testing-library/svelte4 is ESM-only, so I have to use this config.

But it will make error for node_modules file,for example: image

What should I do?

mcous commented 8 months ago

@tanxukun this looks like an issue with your RxJS dependency. Have you tried upgrading RxJS?

mcous commented 7 months ago

@tanxukun are you still experiencing this issue? Were you able to find a resolution? If you're able to provide a minimal reproduction repository, I may be able to help debug.

Otherwise, I think this is likely an issue that is outside the scope of this library. Jest's ESM support is not very strong; you may have better luck with Vitest

mcous commented 7 months ago

Closing due to lack of activity