jest: [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.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (6 by maintainers)

Most upvoted comments

@Mikilll94 i would like to take this one

@Biki-das Feel free to do it 😃