{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/4181","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/4181/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/4181/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/4181/events","html_url":"https://github.com/facebook/jest/issues/4181","id":247446690,"number":4181,"title":"Transform fails to apply to import with query parameters","user":{"login":"dcalhoun","id":438664,"avatar_url":"https://avatars2.githubusercontent.com/u/438664?v=4","gravatar_id":"","url":"https://api.github.com/users/dcalhoun","html_url":"https://github.com/dcalhoun","followers_url":"https://api.github.com/users/dcalhoun/followers","following_url":"https://api.github.com/users/dcalhoun/following{/other_user}","gists_url":"https://api.github.com/users/dcalhoun/gists{/gist_id}","starred_url":"https://api.github.com/users/dcalhoun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcalhoun/subscriptions","organizations_url":"https://api.github.com/users/dcalhoun/orgs","repos_url":"https://api.github.com/users/dcalhoun/repos","events_url":"https://api.github.com/users/dcalhoun/events{/privacy}","received_events_url":"https://api.github.com/users/dcalhoun/received_events","type":"User","site_admin":false},"labels":[{"id":549288633,"url":"https://api.github.com/repos/facebook/jest/labels/Feature%20Request","name":"Feature Request","color":"bfdadc","default":false},{"id":442775532,"url":"https://api.github.com/repos/facebook/jest/labels/Help%20Wanted","name":"Help Wanted","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-02T16:20:49Z","updated_at":"2018-02-16T19:30:23Z","closed_at":null,"author_association":"NONE","body":"**Do you want to request a *feature* or report a *bug*?**\r\n~Bug~ Feature.\r\n\r\n**What is the current behavior?**\r\nJest fails to apply a transform to a file if the import path includes query parameters. The associated test fails with the following error.\r\n\r\n```\r\nCannot find module './puppy.jpg?sizes=300w' from 'withQueryParams.js'\r\n  \r\n  at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17)\r\n  at Object.<anonymous> (withQueryParams.js:1:104)\r\n```\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can `yarn install` and `yarn test`.**\r\nYou can recreate the unexpected behavior with [this reproduction repository](https://github.com/dcalhoun/jest-mock-test).\r\n\r\n**What is the expected behavior?**\r\nJest should transform the imported file that matches the transform config regex. The associated test should pass.\r\n\r\n**Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.**\r\n\r\n```json\r\n{\r\n  \"jest\": {\r\n    \"transform\": {\r\n      \"^.+\\\\.(gif|png|jpg|ttf|eot|svg)(\\\\?.+)?$\": \"<rootDir>/__mocks__/fileMock.js\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n- Jest `20.0.4`\r\n- node `8.2.1`\r\n- yarn `0.27.5`\r\n- npm `5.3.0`\r\n- macOS `10.12.6`"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/366335547","html_url":"https://github.com/facebook/jest/issues/4181#issuecomment-366335547","issue_url":"https://api.github.com/repos/facebook/jest/issues/4181","id":366335547,"user":{"login":"thymikee","id":5106466,"avatar_url":"https://avatars2.githubusercontent.com/u/5106466?v=4","gravatar_id":"","url":"https://api.github.com/users/thymikee","html_url":"https://github.com/thymikee","followers_url":"https://api.github.com/users/thymikee/followers","following_url":"https://api.github.com/users/thymikee/following{/other_user}","gists_url":"https://api.github.com/users/thymikee/gists{/gist_id}","starred_url":"https://api.github.com/users/thymikee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thymikee/subscriptions","organizations_url":"https://api.github.com/users/thymikee/orgs","repos_url":"https://api.github.com/users/thymikee/repos","events_url":"https://api.github.com/users/thymikee/events{/privacy}","received_events_url":"https://api.github.com/users/thymikee/received_events","type":"User","site_admin":false},"created_at":"2018-02-16T19:30:23Z","updated_at":"2018-02-16T19:30:23Z","author_association":"COLLABORATOR","body":"Thank you @hkjorgensen! Can you mention the plugin in Webpack tutorial? "}}
{"actor":{"display_login":"thymikee"}}