Skip to content
Jest transformer mimicking webpack-contrib/raw-loader's functionality
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dependabot
.github/workflows
__tests__
.gitignore
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

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.

You can’t perform that action at this time.