Skip to content
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

Update using workerize-loader within Jest tests #107

Merged
merged 4 commits into from
Jan 9, 2021

Conversation

dpraimeyuu
Copy link
Contributor

See #103

Existing guide on how to make workerize-loader working with Webpack and Jest wasn't sufficient. I used given steps in my project and everything seems working as expected 😄

See developit#103 

Existing guide on how to make `workerize-loader` working with Webpack and Jest wasn't sufficient. I tried given steps in my project and everything seems working as expected 😄
@developit
Copy link
Owner

Wouldn't it be sufficient to use something like jest-worker to polyfill Worker in Jest and have the loader run as it would in production?

@dpraimeyuu
Copy link
Contributor Author

To be honest I wasn't aware of jest-worker existence. Does it make sense to include both configurations? Personally I find jest transform simple enough, but I see your point 👍

@noseworthy
Copy link

@dpraimeyuu: Great PR. I had this issue and following these documentation changes resolved it for me. Many thanks!! 🙏

@noseworthy noseworthy mentioned this pull request Sep 14, 2020
@developit developit merged commit 7f649ef into developit:master Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants