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

.swcrc jsc.paths doesn't transform jest.mock paths #63

Closed
spence-novata opened this issue Jan 2, 2022 · 6 comments
Closed

.swcrc jsc.paths doesn't transform jest.mock paths #63

spence-novata opened this issue Jan 2, 2022 · 6 comments

Comments

@spence-novata
Copy link

I've set up a few paths under jsc.paths in my .swcrc file

They are being transformed by swc nicely but when they are mocked by jest.mock the transformation is not done.

Ideally this would be performed by @swc/jest

@shawnmcknight
Copy link

There is some prior art for this in babel-plugin-module-resolver.

Doc reference

@lsanwick
Copy link

Yeah, hitting this same issue right now. :(

@leepowellnbs
Copy link

It know it doesn't help, but just hit the same issue here.

@camilossantos2809
Copy link

I'm actually still running into this, any workarounds?

@kdy1 kdy1 assigned kdy1 and unassigned kdy1 Jan 10, 2023
@seanparmelee
Copy link

@kdy1 I see this now moved over to https://github.com/swc-project/pkgs. Do you need us to log this issue over there as well?

@kdy1
Copy link
Member

kdy1 commented Feb 21, 2024

No. I'll close this issue as wontfix.
See swc-project/swc#7435.
jest.mock of ESM should fail

@kdy1 kdy1 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants