Skip to content

Jest transformer mimicking webpack-contrib/raw-loader's functionality

License

Notifications You must be signed in to change notification settings

yas7010uv/jest-raw-loader

 
 

Repository files navigation

jest-raw-loader

Jest transformer mimicking webpack-contrib/raw-loader's functionality

Install

$ npm install --save-dev 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$": "jest-raw-loader",
    "\\.md$": "jest-raw-loader"
  }
}

License

Copyright 2017-2020 Kepler Sticka-Jones. Licensed MIT.

About

Jest transformer mimicking webpack-contrib/raw-loader's functionality

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%