How to test code that uses Node's worker_threads #3419
Unanswered
chadhietala
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the recommended way to refer to a file that is loaded by a worker so that it works in tests. I'm currently doing the following:
Currently I get the following error which makes sense because graphWorker.js does not exist since the implementation is in TypeScript and the files are
.ts
.Is there a way to get Vitest to see load the worker correctly?
Beta Was this translation helpful? Give feedback.
All reactions