jest
jest copied to clipboard
[Bug]: Outdated webpack example in the docs
Version
docs
Steps to reproduce
This page in the docs about Webpack is completely outdated: https://jestjs.io/docs/webpack
The syntax for loaders looks really strange and it probably originates from Webpack 2 or 3 (?) . In Webpack 4+ the syntax is completely different.
Additionally in Webpack 5 (which is present for about 1.5 year), the file-loader
and url-loader
are deprecated and should not be used. Instead the asset modules
should be used.
Expected behavior
This page in the docs about Webpack should be up to date with Webpack 5 https://jestjs.io/docs/webpack
Actual behavior
This page in the docs about Webpack is completely outdated: https://jestjs.io/docs/webpack
Additional context
No response
Environment
Does not apply. This is the bug about Jest docs.
@Mikilll94 i would like to take this one
@Biki-das Feel free to do it 😃
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
PR very much welcome! 🙂
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
Leaving my PR as a draft as I don't currently have the bandwidth to test the proposed change.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
@abdih Can I be of any help on this ? Just looking for contributing
@abdih Can I be of any help on this ? Just looking for contributing
Thanks for demonstrating your interest to contribute!
If you could test the changes (e.g., create a project that uses Webpack 4+ and validates the changes I've proposed to the Webpack.md), that would help.
We may very well find out that during some form of testing that either my changes are incomplete or have something incorrect.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
@abdih Same here looking for a chance to contribute. Maybe this project could be an inspiration. I use webpack v5 and jest in it. https://github.com/NetworkRock/personalWebsite
There is https://github.com/facebook/jest/pull/12823 with some unaddressed feedback - would love for somebody to pick it up and land it 🙂
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
@SimenB Can I contribute to this by resolving the issue?
Sure. It would be great to improve the docs.
Yeah, go for it!
That would be great!
@BishtAman It seems 29 days have passed since I declared my contribution. Is there any opportunity for me to contribute? If I do not hear back from you, I will start working on it tomorrow. I should be able to create a PR within a few days.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.