{"action":"created","issue":{"url":"https://api.github.com/repos/kulshekhar/ts-jest/issues/669","repository_url":"https://api.github.com/repos/kulshekhar/ts-jest","labels_url":"https://api.github.com/repos/kulshekhar/ts-jest/issues/669/labels{/name}","comments_url":"https://api.github.com/repos/kulshekhar/ts-jest/issues/669/comments","events_url":"https://api.github.com/repos/kulshekhar/ts-jest/issues/669/events","html_url":"https://github.com/kulshekhar/ts-jest/issues/669","id":348678116,"node_id":"MDU6SXNzdWUzNDg2NzgxMTY=","number":669,"title":"Troubles using it with TS3 and composite project","user":{"login":"emirotin","id":525832,"node_id":"MDQ6VXNlcjUyNTgzMg==","avatar_url":"https://avatars0.githubusercontent.com/u/525832?v=4","gravatar_id":"","url":"https://api.github.com/users/emirotin","html_url":"https://github.com/emirotin","followers_url":"https://api.github.com/users/emirotin/followers","following_url":"https://api.github.com/users/emirotin/following{/other_user}","gists_url":"https://api.github.com/users/emirotin/gists{/gist_id}","starred_url":"https://api.github.com/users/emirotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emirotin/subscriptions","organizations_url":"https://api.github.com/users/emirotin/orgs","repos_url":"https://api.github.com/users/emirotin/repos","events_url":"https://api.github.com/users/emirotin/events{/privacy}","received_events_url":"https://api.github.com/users/emirotin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-08T11:04:17Z","updated_at":"2018-09-01T12:09:43Z","closed_at":null,"author_association":"NONE","body":"## Issue <!-- describe the issue below -->:\r\n\r\nI'm unable to use it with TypeScript 3.0 and [`composite` project](https://blogs.msdn.microsoft.com/typescript/2018/07/12/announcing-typescript-3-0-rc/#project-references)\r\n\r\n## Expected behavior <!-- describe the expected behavior below -->:\r\n\r\nI expect the tests to work\r\n\r\n## Output from debug log <!-- You can activate the debug logger by setting the environment variable TS_JEST_DEBUG=\"true\" before running yarn test. The output of the logger will be in **<your_project_dir>/node_modules/ts-jest/debug.txt**, paste it below -->:\r\n\r\n_I didn't get the debug.txt_, but here's the test output.\r\n\r\n### a) with `enableTsDiagnostics: true`\r\n\r\n```bash\r\n FAIL  test/testing.test.ts\r\n  ● Test suite failed to run\r\n\r\n    error TS6304: Composite projects may not disable declaration emit.\r\n\r\n      at Object.runTsDiagnostics [as default] (../../node_modules/ts-jest/src/utils/run-ts-diagnostics.ts:16:11)\r\n      at Object.preprocess [as process] (../../node_modules/ts-jest/src/preprocess.ts:46:21)\r\n\r\nTest Suites: 1 failed, 1 total\r\n```\r\n\r\n### b) with `enableTsDiagnostics: false`\r\n\r\n```bash\r\n FAIL  test/testing.test.ts\r\n  ● Test suite failed to run\r\n\r\n    Debug Failure. Expected \"use strict\";\r\n    describe('Testing a test', function () {\r\n        it('should be true', function () {\r\n            expect(true).toBeTruthy();\r\n        });\r\n    });\r\n    //# sourceMappingURL=testing.test.js.map === undefined. Unexpected multiple outputs, file: /Users/emirotin/work/learn-a/packages/pkg2/test/testing.test.d.ts\r\n\r\n      at Object.assertEqual (../../node_modules/typescript/lib/typescript.js:1389:17)\r\n      at Object.writeFile (../../node_modules/typescript/lib/typescript.js:100504:30)\r\n      at Object.__assign.writeFile (../../node_modules/typescript/lib/typescript.js:83117:596)\r\n      at Object.writeFile (../../node_modules/typescript/lib/typescript.js:10573:14)\r\n      at printSourceFileOrBundle (../../node_modules/typescript/lib/typescript.js:78709:16)\r\n      at emitDeclarationFileOrBundle (../../node_modules/typescript/lib/typescript.js:78671:17)\r\n      at emitSourceFileOrBundle (../../node_modules/typescript/lib/typescript.js:78589:13)\r\n      at forEachEmittedFile (../../node_modules/typescript/lib/typescript.js:78497:30)\r\n      at Object.emitFiles (../../node_modules/typescript/lib/typescript.js:78578:9)\r\n      at emitWorker (../../node_modules/typescript/lib/typescript.js:83228:33)\r\n\r\nTest Suites: 1 failed, 1 total\r\n```\r\n\r\nThe latter coming from here: https://github.com/Microsoft/TypeScript/blob/master/src/services/transpile.ts#L79\r\n\r\n## Minimal repo <!-- If you haven't already, create the smallest possible repo that reproduces this issue by running `npm install` and `npm test`. This will speed up any fixes that this issue might need. Paste the minimal repo URL below -->:\r\n\r\nhttps://github.com/emirotin/learn-a\r\n\r\n<!-- Optional (but highly recommended): Configure Travis (or your favorite system) with the minimal repo. This allows potential solutions to be tested against the minimal repo. This saves everyone time and avoids a lot of back and forth. -->\r\n"},"comment":{"url":"https://api.github.com/repos/kulshekhar/ts-jest/issues/comments/417855388","html_url":"https://github.com/kulshekhar/ts-jest/issues/669#issuecomment-417855388","issue_url":"https://api.github.com/repos/kulshekhar/ts-jest/issues/669","id":417855388,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzg1NTM4OA==","user":{"login":"huafu","id":1162602,"node_id":"MDQ6VXNlcjExNjI2MDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1162602?v=4","gravatar_id":"","url":"https://api.github.com/users/huafu","html_url":"https://github.com/huafu","followers_url":"https://api.github.com/users/huafu/followers","following_url":"https://api.github.com/users/huafu/following{/other_user}","gists_url":"https://api.github.com/users/huafu/gists{/gist_id}","starred_url":"https://api.github.com/users/huafu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huafu/subscriptions","organizations_url":"https://api.github.com/users/huafu/orgs","repos_url":"https://api.github.com/users/huafu/repos","events_url":"https://api.github.com/users/huafu/events{/privacy}","received_events_url":"https://api.github.com/users/huafu/received_events","type":"User","site_admin":false},"created_at":"2018-09-01T12:09:43Z","updated_at":"2018-09-01T12:09:43Z","author_association":"COLLABORATOR","body":"@emirotin if you feel like it, you can test our latest beta with your full project. See #697 ;-)"}}
{"actor":{"display_login":"huafu"}}