open-index/open-npm huggingface dataset:
npm package: @leviy/jest-twig-transformer
Description: Jest transformer for compiling twig.js templates
Latest version: 1.0.1
Deprecated: this package has been deprecated

# @leviy/jest-twig-transformer

[Jest transformer](https://jestjs.io/docs/en/configuration#transform-object-string-string) for compiling twig.js templates.

Inspired by the webpack [twig-loader](https://github.com/zimmo-be/twig-loader) created by [zimmo.be](https://github.com/zimmo-be).

## Installation

```bash
npm install @leviy/jest-twig-transformer --save-dev
```

## Usage

Add an entry to `transform` in your project's [Jest config](https://facebook.github.io/jest/docs/configuration.html):

```js
{
    transform: {
        '\\.twig$': '@leviy/jest-twig-transformer',
        '\\.js?$': 'babel-jest'
    }
}
```