{"action":"created","issue":{"url":"https://api.github.com/repos/trotzig/import-js/issues/127","labels_url":"https://api.github.com/repos/trotzig/import-js/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/trotzig/import-js/issues/127/comments","events_url":"https://api.github.com/repos/trotzig/import-js/issues/127/events","html_url":"https://github.com/trotzig/import-js/issues/127","id":126778859,"number":127,"title":"Add flexibility to module resolution","user":{"login":"lencioni","id":195534,"avatar_url":"https://avatars.githubusercontent.com/u/195534?v=3","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/trotzig/import-js/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2016-01-15T00:16:04Z","updated_at":"2016-01-17T20:00:39Z","closed_at":"2016-01-17T19:50:30Z","body":"Similar to #125, I am encountering some naming convention in tests where there are `mocks` directories scattered throughout with filenames that match components that they mock, but when imported, they are imported as `mockComponentName`. For instance, There might be a component at `app/assets/javascripts/something/MyComponent`, a test at `spec/javascripts/something/MyComponent_spec.jsx`, and a mock at `spec/javascripts/something/mocks/MyComponent.jsx`. In the spec, the mock is imported as `import mockMyComponent from './mocks/MyComponent';`. Sometimes these are imported from further away, such as `import mockMyComponent from '../../../something/mocks/MyComponent';`. I wonder if we can think of a good way to add a little configuration to help resolve these better. Perhaps, this could be the same solution as #125."},"comment":{"url":"https://api.github.com/repos/trotzig/import-js/issues/comments/172371985","html_url":"https://github.com/trotzig/import-js/issues/127#issuecomment-172371985","issue_url":"https://api.github.com/repos/trotzig/import-js/issues/127","id":172371985,"user":{"login":"trotzig","id":578277,"avatar_url":"https://avatars.githubusercontent.com/u/578277?v=3","gravatar_id":"","url":"https://api.github.com/users/trotzig","html_url":"https://github.com/trotzig","followers_url":"https://api.github.com/users/trotzig/followers","following_url":"https://api.github.com/users/trotzig/following{/other_user}","gists_url":"https://api.github.com/users/trotzig/gists{/gist_id}","starred_url":"https://api.github.com/users/trotzig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trotzig/subscriptions","organizations_url":"https://api.github.com/users/trotzig/orgs","repos_url":"https://api.github.com/users/trotzig/repos","events_url":"https://api.github.com/users/trotzig/events{/privacy}","received_events_url":"https://api.github.com/users/trotzig/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T20:00:39Z","updated_at":"2016-01-17T20:00:39Z","body":"Interesting. Can you see if you can create a repro case?"}}