/html-loader-jest

html-loader integration for preprocessor html files included on code under test

Primary LanguageJavaScript

html-loader-jest

html-loader jest plugin

Install

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:

"transform": {
  "^.+\\.html?$": "html-loader-jest"
},

@TODO: Support .pug files @TODO: Add tests and TRAVIS CI