Skip to content

Commit

Permalink
Remove Testing Library edge case handling
Browse files Browse the repository at this point in the history
Not needed anymore with v11.2.7+

See testing-library/react-testing-library#911
  • Loading branch information
swissspidy committed Jul 2, 2021
1 parent 3f9cd4e commit 67ea513
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions webpack.config.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ function getConfig(group, { coverage = false } = {}) {
!(plugin instanceof DependencyExtractionWebpackPlugin) &&
!(plugin instanceof HtmlWebpackPlugin)
),
// React Testing Library checks for this variable, but webpack does
// no longer polyfill `process` in the browser.
new webpack.DefinePlugin({
'process.env.RTL_SKIP_AUTO_CLEANUP': false,
}),
],
}))[0];
if (coverage) {
Expand Down

0 comments on commit 67ea513

Please sign in to comment.