Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keplersj/jest-raw-loader
Jest transformer mimicking webpack-contrib/raw-loader's functionality
https://github.com/keplersj/jest-raw-loader
jest unit-testing webpack-contrib
Last synced: about 1 month ago
JSON representation
Jest transformer mimicking webpack-contrib/raw-loader's functionality
- Host: GitHub
- URL: https://github.com/keplersj/jest-raw-loader
- Owner: keplersj
- License: mit
- Created: 2017-10-31T21:41:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T02:35:11.000Z (7 months ago)
- Last Synced: 2024-05-21T12:51:37.961Z (7 months ago)
- Topics: jest, unit-testing, webpack-contrib
- Language: JavaScript
- Homepage: https://keplersj.com/projects/jest-raw-loader/
- Size: 1.97 MB
- Stars: 34
- Watchers: 5
- Forks: 9
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-jest - jest-raw-loader - loader`. (Packages / Processor)
README
# jest-raw-loader
[Jest](https://facebook.github.io/jest/) transformer mimicking [webpack-contrib/raw-loader](https://github.com/webpack-contrib/raw-loader)'s functionality
## Install
```
$ npm install --save-dev jest-raw-loader
```## Usage
Use [jest's `transform` configuration options](https://facebook.github.io/jest/docs/en/configuration.html#transform-object-string-string) to use this package in your unit tests.
For example use the following to raw load `.md` and `.graphql` files:
```json
"jest": {
"transform": {
"\\.graphql$": "jest-raw-loader",
"\\.md$": "jest-raw-loader"
}
}
```## License
Copyright 2017-2020 [Kepler Sticka-Jones](https://keplersj.com/). Licensed MIT.