/pug-jest

Jest plugin for Pug

Primary LanguageJavaScript

pug-jest

Transform your .pug files to HTML for running Jest with markup templates

Usage

npm install pug-jest --save-dev

Setup

Define pug-jest as a transformer for Jest, by adding the following to your Jest configuration in your package.json:

{
  "jest": {
    "transform": {
      "\\.(pug)$": "<rootDir>/node_modules/pug-jest"
    }
  }
}