webpack.js.org icon indicating copy to clipboard operation
webpack.js.org copied to clipboard

Add documentation about writing tests in "Writing a Plugin"

Open mauriciabad opened this issue 3 years ago • 1 comments

Feature to document

I recently created a plugin, but I can't manage to add tests to it. And it's a very important thing to have.

I'd like to request an official documentation that explains how to set up the tests when writing a plugin, accompanied by some examples. My preference is Jest, but feel free to use any other testing framework.

Author(s)

none

Additional information

[x] I am willing to work on this issue and submit a pull request. (I'm open to contribute, but I don't know how to set up the tests 😅)

mauriciabad avatar Dec 06 '21 16:12 mauriciabad

Like you test other tools, run compilation and compare output based on what your plugin do

alexander-akait avatar Dec 06 '21 16:12 alexander-akait