jest-html-loader
v1.0.0
Published
Integration of html-loader package with Jest 28+
Downloads
30,283
Readme
jest-html-loader
html-loader plugin for Jest v28+
An alternative to html-loader-jest that only works until Jest 27
Install
npm install --save-dev jest-html-loader
Integration with jest
Define jest-html-loader
as a transformer for your html files included in your source files under test. In the "transform" key for jest configuration in the package.json
add the following:
"transform": {
"^.+\\.html?$": "jest-html-loader"
},