Schascha / html-loader-jest

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:JavaScript 100.0%