Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure jest to resolve dynamic paths #121

Open
aslink87 opened this issue Sep 19, 2023 · 0 comments
Open

configure jest to resolve dynamic paths #121

aslink87 opened this issue Sep 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@aslink87
Copy link
Member

issue: if dynamic paths are used in route page.client.tsx files, jest cannot resolve the path in unit tests.

to replicate: edit app/template/page.client.tsx and change import { getSubmitFormClient } from '../_lib/api-calls'; to import { getSubmitFormClient } from '@/lib/api-calls'; then run yarn test:unit. jest will fail to find the file

@aslink87 aslink87 added the bug Something isn't working label Sep 19, 2023
@nitishdhar nitishdhar moved this to Backlog in 🚪 EDPN - Frontend Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant