-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix/jest esm babel #30
Conversation
Hmm. I don't know why Jest is always trying to load the |
I think the |
The thing about CJS / Even with the coverage stuff removed the tests still fail though since the SvelteKit stuff hasn't been mocked due to lack of mocking support in ESM |
Hmm. I created a new project using coverage and |
Yea I played around with it more and got past that error but still unable to get mocks working correctly for anything beyond a basic example. which seems more like a jest/esm issue. |
Yeah, we'd need Jest to fix that. Maybe you could try this workaround in the meantime? jestjs/jest#10025 (comment) |
I got a version of this working - will share pending some clean up, but used strategy from sveltejs/kit#1485 (comment)
|
Signed-off-by: Patrick Lee Scott <pat@patscott.io>
…m esbuild-jest Signed-off-by: Patrick Lee Scott <pat@patscott.io>
Signed-off-by: Patrick Lee Scott <pat@patscott.io>
Signed-off-by: Patrick Lee Scott <pat@patscott.io>
Signed-off-by: Patrick Lee Scott <pat@patscott.io>
df9986a
to
38dae5d
Compare
Codecov Report
@@ Coverage Diff @@
## master #30 +/- ##
==========================================
- Coverage 88.08% 86.40% -1.68%
==========================================
Files 10 10
Lines 235 206 -29
Branches 17 17
==========================================
- Hits 207 178 -29
Misses 28 28
Continue to review full report at Codecov.
|
@benmccann pushed I guess the combination of
This error is just for show though - doesn't actually break anything |
No description provided.