{"library":"jest-raw-loader","type":"library","category":null,"description":"Jest transformer that imports files as raw strings, mimicking webpack-contrib/raw-loader for testing. Current stable version 1.0.1 (last release Jul 22, 2018; long-term maintenance unclear). It reads file content and returns it as a module exporting the string. Simple configuration via Jest's transform option. Unlike other loaders, it directly replaces file imports with their raw content, useful for testing components that import .graphql, .md, or .txt files. No updates since 2018, so may not support newer Jest versions.","language":"javascript","status":"maintenance","version":"1.0.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install jest-raw-loader","imports":["// package used as Jest transformer in config, not directly imported","\"jest\": { \"transform\": { \"\\\\.graphql$\": \"jest-raw-loader\" } }","import content from './example.graphql'; // content is a string"]},{"cmd":"yarn add jest-raw-loader","imports":[]},{"cmd":"pnpm add jest-raw-loader","imports":[]}],"homepage":null,"github":"https://github.com/keplersj/jest-raw-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/jest-raw-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/jest-raw-loader/compatibility"}}