slackhq / csp-html-webpack-plugin

A plugin which, when combined with HTMLWebpackPlugin, adds CSP tags to the HTML output.
MIT License
164 stars 39 forks source link

Change Jest configuration to also work on Windows #100

Open StephanBijzitter opened 3 years ago

StephanBijzitter commented 3 years ago

Summary

Due to Windows file paths, jest wasn't able to find any test files and due to rm not being available on Windows, coverage could not be created.

Updating the test matcher and replacing rm with rimraf (a node dependency) allows Windows to run this project properly when developing locally

Requirements (place an x in each [ ])

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

melloware commented 2 years ago

Thank you for this. I implemented your changes in my fork: https://github.com/melloware/csp-webpack-plugin