{"_id":"jest-transform-stub","_rev":"1277497","name":"jest-transform-stub","description":"Jest transform stub","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"}],"time":{"modified":"2021-10-18T02:57:38.000Z","created":"2018-02-27T21:53:42.763Z","2.0.0":"2019-02-03T06:44:50.179Z","1.0.0":"2018-02-27T21:53:42.763Z"},"users":{},"author":{"name":"Edd Yerburgh"},"repository":{"type":"git","url":"git+https://github.com/eddyerburgh/jest-transform-stub.git"},"versions":{"2.0.0":{"name":"jest-transform-stub","version":"2.0.0","description":"Jest transform stub","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/eddyerburgh/jest-transform-stub.git"},"keywords":["jest"],"author":{"name":"Edd Yerburgh"},"license":"MIT","bugs":{"url":"https://github.com/eddyerburgh/jest-transform-stub/issues"},"homepage":"https://github.com/eddyerburgh/jest-transform-stub#readme","devDependencies":{"jest":"^22.4.2"},"jest":{"transform":{".+\\.png$":"<rootDir>/index.js"}},"gitHead":"be07b435599dbebe85656a307c2372e23882b33e","_id":"jest-transform-stub@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"},"dist":{"shasum":"19018b0851f7568972147a5d60074b55f0225a7d","size":1486,"noattachment":false,"key":"/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jest-transform-stub/download/jest-transform-stub-2.0.0.tgz"},"maintainers":[{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-transform-stub_2.0.0_1549176290028_0.8183352250665257"},"_hasShrinkwrap":false,"publish_time":1549176290179,"_cnpm_publish_time":1549176290179},"1.0.0":{"name":"jest-transform-stub","version":"1.0.0","description":"Jest transform stub","main":"index.js","files":["index.js"],"scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/eddyerburgh/jest-transform-stub.git"},"keywords":["jest"],"author":{"name":"Edd Yerburgh"},"license":"MIT","bugs":{"url":"https://github.com/eddyerburgh/jest-transform-stub/issues"},"homepage":"https://github.com/eddyerburgh/jest-transform-stub#readme","devDependencies":{"jest":"^22.4.2"},"jest":{"transform":{".+\\.png$":"<rootDir>/index.js"}},"gitHead":"0a9783d08fc6c80ef13b7d78a5b3cf7e8da2b4bd","_id":"jest-transform-stub@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"6.12.3","_npmUser":{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"},"dist":{"shasum":"e4e941454f31a8bbc4db96b31f46a08b294372b1","size":1179,"noattachment":false,"key":"/jest-transform-stub/-/jest-transform-stub-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/jest-transform-stub/download/jest-transform-stub-1.0.0.tgz"},"maintainers":[{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-transform-stub_1.0.0_1519768422715_0.7840053892117018"},"_hasShrinkwrap":false,"publish_time":1519768422763,"_cnpm_publish_time":1519768422763}},"readme":"# jest-transform-stub\n\nJest doesn't handle non JavaScript assets by default.\n\nYou can use this module to avoid errors when importing non JavaScript assets.\n\n## Usage\n\n```shell\nnpm install --save-dev jest-transform-stub\n```\n\nIn your Jest config, add jest-transform-stub to transform non JavaScript assets you want to stub:\n\n```js\n{\n  \"jest\": {\n    // ..\n    \"transform\": {\n      \"^.+\\\\.js$\": \"babel-jest\",\n      \".+\\\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$\": \"jest-transform-stub\"\n    }\n  }\n}\n```\n\n## FAQ\n\n**My module isn't being transformed**\n\nJest doesn't apply transforms to node_modules by default. You can solve this by using `moduleNameMapper`:\n\n```js\n{\n  \"jest\": {\n    // ..\n    \"moduleNameMapper\": {\n      \"^.+.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$\": \"jest-transform-stub\"\n    }\n  }\n}\n```\n","_attachments":{},"homepage":"https://github.com/eddyerburgh/jest-transform-stub#readme","bugs":{"url":"https://github.com/eddyerburgh/jest-transform-stub/issues"},"license":"MIT"}