diff --git a/integration_tests/typescript-coverage/__tests__/covered-test.ts b/integration_tests/typescript-coverage/__tests__/covered-test.ts index d80a5535b555..d65149652a05 100644 --- a/integration_tests/typescript-coverage/__tests__/covered-test.ts +++ b/integration_tests/typescript-coverage/__tests__/covered-test.ts @@ -7,4 +7,4 @@ it('adds 1 + 2 to equal 3 in TScript', ()=> { it('subtracts 3 - 2 to equal 1 in TScript', () => { expect(difference(3, 2)).toBe(1); -}); \ No newline at end of file +}); diff --git a/integration_tests/typescript-coverage/covered.ts b/integration_tests/typescript-coverage/covered.ts index 8ad19c60f8f9..db2991e425e4 100644 --- a/integration_tests/typescript-coverage/covered.ts +++ b/integration_tests/typescript-coverage/covered.ts @@ -18,4 +18,4 @@ export function difference(a: number, b: number): number { const fn2 = true ? () => null : () => null; return a - b; -} \ No newline at end of file +} diff --git a/integration_tests/typescript-coverage/typescript-preprocessor.js b/integration_tests/typescript-coverage/typescript-preprocessor.js index 64aaa28d15c7..2cdebdc9b88d 100644 --- a/integration_tests/typescript-coverage/typescript-preprocessor.js +++ b/integration_tests/typescript-coverage/typescript-preprocessor.js @@ -5,7 +5,7 @@ const tsc = require('typescript'); module.exports = { process(src, path) { if (path.endsWith('.ts') || path.endsWith('.tsx')) { - const {outputText, sourceMapText} = tsc.transpileModule( + const result = tsc.transpileModule( src, { compilerOptions: { @@ -16,8 +16,8 @@ module.exports = { } ); return { - content: outputText, - sourceMap: JSON.parse(sourceMapText), + content: result.outputText, + sourceMap: JSON.parse(result.sourceMapText), }; } return src; diff --git a/packages/jest-runtime/package.json b/packages/jest-runtime/package.json index ff9779ea60f8..4f13de072b6f 100644 --- a/packages/jest-runtime/package.json +++ b/packages/jest-runtime/package.json @@ -10,7 +10,7 @@ "dependencies": { "babel-core": "^6.0.0", "babel-jest": "^18.0.0", - "babel-plugin-istanbul": "^3.0.0", + "babel-plugin-istanbul": "^3.1.0-candidate.0", "chalk": "^1.1.3", "graceful-fs": "^4.1.6", "istanbul-lib-instrument": "^1.3.0",