webpack-contrib / eslint-webpack-plugin

A ESLint plugin for webpack
MIT License
256 stars 49 forks source link

chore: improve unit tests feedback loop by making them asynchronous #241

Closed onigoetz closed 8 months ago

onigoetz commented 8 months ago

This PR contains a:

Motivation / Use-Case

When contributing on #237 and #238, when a test failed it had to reach the timeout to display the error. Using async/await makes it so that when a test fails, the error is printed immediately.

This reduces the feedback loop and makes it easier to make changes.

The downside is that it hides the webpack API behind an indirection layer. I'll let you judge if this is something you want to have or not.

Breaking Changes

N/A

Additional Info