{"action":"created","issue":{"url":"https://api.github.com/repos/thymikee/jest-preset-angular/issues/167","repository_url":"https://api.github.com/repos/thymikee/jest-preset-angular","labels_url":"https://api.github.com/repos/thymikee/jest-preset-angular/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/thymikee/jest-preset-angular/issues/167/comments","events_url":"https://api.github.com/repos/thymikee/jest-preset-angular/issues/167/events","html_url":"https://github.com/thymikee/jest-preset-angular/issues/167","id":337676235,"node_id":"MDU6SXNzdWUzMzc2NzYyMzU=","number":167,"title":"Haste module map error with @angular/cli libraries","user":{"login":"Itrulia","id":1131901,"node_id":"MDQ6VXNlcjExMzE5MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/1131901?v=4","gravatar_id":"","url":"https://api.github.com/users/Itrulia","html_url":"https://github.com/Itrulia","followers_url":"https://api.github.com/users/Itrulia/followers","following_url":"https://api.github.com/users/Itrulia/following{/other_user}","gists_url":"https://api.github.com/users/Itrulia/gists{/gist_id}","starred_url":"https://api.github.com/users/Itrulia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itrulia/subscriptions","organizations_url":"https://api.github.com/users/Itrulia/orgs","repos_url":"https://api.github.com/users/Itrulia/repos","events_url":"https://api.github.com/users/Itrulia/events{/privacy}","received_events_url":"https://api.github.com/users/Itrulia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-02T21:50:36Z","updated_at":"2018-07-03T08:20:43Z","closed_at":null,"author_association":"NONE","body":"The library is generated by `ng g library @itrulia/dates`\r\n\r\n```\r\n    The name `@itrulia/dates` was looked up in the Haste module map. It cannot be resolved, because there exists several different files, or packages, that provide a module for that particular name and platform. The platform is generic (no extension). You must delete or blacklist files until there remains only one of these:\r\n\r\n      * `/home/talleane/Documents/@itrulia/dates/dist/itrulia/dates/package.json` (package)\r\n      * `/home/talleane/Documents/@itrulia/dates/projects/itrulia/dates/package.json` (package)\r\n```\r\n\r\ndist is the generated output by `ng build @itrulia/dates`.\r\n\r\nspec looks like this:\r\n\r\n\r\n```\r\nimport {ReactiveFormsModule} from \"@angular/forms\";\r\nimport {async, ComponentFixture, TestBed} from \"@angular/core/testing\";\r\nimport {AppComponent} from \"./app.component\";\r\nimport {DatesModule} from \"@itrulia/dates\";\r\n\r\ndescribe(\"AppComponent\", () => {\r\n    let component: AppComponent;\r\n    let fixture: ComponentFixture<AppComponent>;\r\n\r\n    beforeEach(async(() => {\r\n        TestBed.configureTestingModule({\r\n            declarations: [\r\n                AppComponent\r\n            ],\r\n            imports: [\r\n                DatesModule,\r\n                ReactiveFormsModule\r\n            ]\r\n        })\r\n        .compileComponents();\r\n    }));\r\n\r\n    beforeEach(() => {\r\n        fixture = TestBed.createComponent(AppComponent);\r\n        component = fixture.componentInstance;\r\n        fixture.detectChanges();\r\n    });\r\n\r\n    it(\"should create\", () => {\r\n        expect(component).toBeTruthy();\r\n    });\r\n});\r\n```\r\n\r\nI have tried adding\r\n\r\n```\r\nmodulePathIgnorePatterns: [\r\n    \"<rootDir>/projects\"\r\n  ],\r\n```\r\n\r\nThis resulted in to Jest not being able to find @itrulia/dates. "},"comment":{"url":"https://api.github.com/repos/thymikee/jest-preset-angular/issues/comments/402053915","html_url":"https://github.com/thymikee/jest-preset-angular/issues/167#issuecomment-402053915","issue_url":"https://api.github.com/repos/thymikee/jest-preset-angular/issues/167","id":402053915,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjA1MzkxNQ==","user":{"login":"Itrulia","id":1131901,"node_id":"MDQ6VXNlcjExMzE5MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/1131901?v=4","gravatar_id":"","url":"https://api.github.com/users/Itrulia","html_url":"https://github.com/Itrulia","followers_url":"https://api.github.com/users/Itrulia/followers","following_url":"https://api.github.com/users/Itrulia/following{/other_user}","gists_url":"https://api.github.com/users/Itrulia/gists{/gist_id}","starred_url":"https://api.github.com/users/Itrulia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itrulia/subscriptions","organizations_url":"https://api.github.com/users/Itrulia/orgs","repos_url":"https://api.github.com/users/Itrulia/repos","events_url":"https://api.github.com/users/Itrulia/events{/privacy}","received_events_url":"https://api.github.com/users/Itrulia/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T08:20:43Z","updated_at":"2018-07-03T08:20:43Z","author_association":"NONE","body":"Created that issue here because I thought that the preset should handle this, I am currently testing stuff for my schematics :)"}}
{"actor":{"display_login":"Itrulia"}}