Open denbon05 opened 1 year ago
Scenario here looks like the project is not type "module" and so any non-transpiled code is not going to be able to have import statements without being in a .mjs file. This is a weird one because @solidjs/router is type module and I would have expected other imports to fail. Although I'm going to push this issue back to the template side as the problem is more with the project setup/defaults than with the router.
Describe the bug
There is an issue with importing '@solidjs/router' in ts file during test execution. I've been trying to adjust jest config
But still facing the error:
Your Example Website or App
https://github.com/denbon05/blockexplorer/blob/main/__tests__/unit/utils/Paginator.test.ts
Steps to Reproduce the Bug or Issue
Expected behavior
Could you provide configuration sample with jest https://github.com/solidjs/templates/tree/main/ts-router
Screenshots or Videos
Platform
Additional context
No response