@glen/jest-raw-loader
v2.0.0
Published
Jest transformer mimicking webpack-contrib/raw-loader's functionality
Downloads
40,428
Readme
jest-raw-loader
Jest transformer mimicking webpack-contrib/raw-loader's functionality
Install
$ npm install --save-dev @glen/jest-raw-loader
Usage
Use jest's transform
configuration options to use this package in your unit tests.
For example use the following to raw load .md
and .graphql
files:
"jest": {
"transform": {
"\\.graphql$": "@glen/jest-raw-loader",
"\\.md$": "@glen/jest-raw-loader"
}
}
This is for jest >= 28, if you are using older version use jest-raw-loader
package:
- https://github.com/keplersj/jest-raw-loader
License
Copyright 2017-2020 Kepler Sticka-Jones. Licensed MIT.