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.
npm install jest-raw-loaderVerified import paths — ran on the pinned version, not inferred.
Configure Jest to import .graphql and .md files as raw strings, then verify in a test.
Use a more maintained transformer like jest-transform-raw, or configure Jest custom transformer manually.
Evaluate alternatives if you need active maintenance or newer Jest support.
Use "\\.graphql$" (escaped backslash and dot) instead of ".graphql".
Run 'npm install --save-dev jest-raw-loader'
Upgrade to a compatible transformer or downgrade Jest to <=26.
Use double backslashes: "\\.graphql$"
No dependency data recorded yet.