integration of html-loader package with jest
npm install html-loader-jesthtml-loader jest plugin
npm install --save-dev html-loader-jest
`
Integration with jest
Define
html-loader-jest 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:`json
"transform": {
"^.+\\.html?$": "html-loader-jest"
},
``@TODO: Support .pug files
@TODO: Add tests and TRAVIS CI