Example needed for vitest legacy JQuery + html #6809
jesperronn
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a legacy project, HTML and legacy Javascript. Here is an example of a jquery snippet from that legacy application (simplified example):
My requirements are:
document.ready()
although I can live with triggereing my 'init()' function directly in case it is too difficult.I am looking for an example where I can write unit tests for this using vitest.
I have briefly tried with both happy-dom and JSDom but did not have any luck.
Do we have an example that (perhaps eventually) can be part of the vitest documentation?
Beta Was this translation helpful? Give feedback.
All reactions