You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use @swc/jest to speed up my tests on my lit+typescript+jest setup. When using the swc/jest as the test runner the willUpdate method is not getting executed. From what I see/find the call stack is different when using ts-jest & it works fine, but on using swc/jest the callstack is missing the _callSuper().
I am attaching a simple repository that can reproduce the issue. Btw here's some screenshots that shows the above, if it is helpful
Describe the bug
I am trying to use @swc/jest to speed up my tests on my
lit+typescript+jest
setup. When using theswc/jest
as the test runner thewillUpdate
method is not getting executed. From what I see/find the call stack is different when usingts-jest
& it works fine, but on usingswc/jest
the callstack is missing the_callSuper()
.I am attaching a simple repository that can reproduce the issue. Btw here's some screenshots that shows the above, if it is helpful
swc
ts-jest
Input code
No response
Config
Playground link (or link to the minimal reproduction)
https://github.com/gethari/typescript-webpack-lit-html-jest-swc
SWC Info output
Operating System:
Platform: linux
Arch: x64
Machine Type: x86_64
Version: #19~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024
CPU: (2 cores)
Models: AMD EPYC 7763 64-Core Processor
Expected behavior
swc/jest
should not break existing tests & should call lit component lifecycle'swillUpdate()
methodActual behavior
willUpdate()
method is not getting executed.Version
1.4.6
Additional context
Not sure if this issue is specific to
jest
orlit
orswc
, I have filed the same issue on other repositories as wellLit + Jest + Typescript + SWC Jest lit/lit#4580
[Bug]: Unable to get Lit + Jest + Typescript + SWC Jest to work properly jestjs/jest#14955
The text was updated successfully, but these errors were encountered: