Replies: 3 comments
-
@blwtxc you should also add the global for happy-dom, similar we do with jsdom, just checking for the mock: the main problem is you need to configure the globals, not just calling the register and unregister method Anyway, I think the best approach is to use jsdom and to not include happy-dom, once merged my PR should work: it is only used for SSG and so jsdom should work EDIT: I mean, you register only the happy-dom globals to make your app build without errors, if you're pacthing manuallly the build module just move the jsdom global before loading the ssr entry |
Beta Was this translation helpful? Give feedback.
-
Agreed. As I mentioned before: Sorry for wasting your time!
Cheers
Am 01.06.22 um 19:04 schrieb Joaquín Sánchez:
…
@blwtxc <https://github.com/blwtxc> you should also add the global for
happy-dom, similar we do with jsdom, just checking for the mock: the
main problem is you need to configure the globals, not just calling
the register and unregister method
Anyway, I think the best approach is to use jsdom and to not include
happy-dom, once merged my PR should work: it is only used for SSG and
so jsdom should work
—
Reply to this email directly, view it on GitHub
<#256 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGZPXB4AKJD6XCNG7DPNSLVM6JZTANCNFSM5XR7L6KQ>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@blwtxc continue here
don't worry, it's complex and until you get used to the idea, it takes time
we should use a factory factory approach:
then on
src/node/build.ts
Beta Was this translation helpful? Give feedback.
All reactions