{"id":13847108,"url":"https://github.com/eddyerburgh/jest-transform-stub","last_synced_at":"2025-10-26T13:35:20.727Z","repository":{"id":46934215,"uuid":"123193208","full_name":"eddyerburgh/jest-transform-stub","owner":"eddyerburgh","description":"Jest stub transform","archived":false,"fork":false,"pushed_at":"2022-12-07T09:43:47.000Z","size":282,"stargazers_count":113,"open_issues_count":8,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T07:49:18.428Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddyerburgh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-27T21:52:19.000Z","updated_at":"2024-12-30T01:35:53.000Z","dependencies_parsed_at":"2023-01-23T16:30:38.117Z","dependency_job_id":null,"html_url":"https://github.com/eddyerburgh/jest-transform-stub","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddyerburgh%2Fjest-transform-stub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddyerburgh%2Fjest-transform-stub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddyerburgh%2Fjest-transform-stub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddyerburgh%2Fjest-transform-stub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddyerburgh","download_url":"https://codeload.github.com/eddyerburgh/jest-transform-stub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T18:00:54.364Z","updated_at":"2025-10-26T13:35:15.662Z","avatar_url":"https://github.com/eddyerburgh.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyerburgh%2Fjest-transform-stub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddyerburgh%2Fjest-transform-stub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyerburgh%2Fjest-transform-stub/lists"}