From a2383749bf09b877bb9beec8777fa78c6dc8f80c Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 26 Aug 2019 08:31:01 +0200 Subject: [PATCH] remove re-exports from jest-core --- CHANGELOG.md | 1 + packages/jest-cli/src/index.ts | 8 -------- packages/jest/package.json | 1 + packages/jest/src/jest.ts | 5 +++-- packages/jest/tsconfig.json | 3 ++- 5 files changed, 7 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc5a0bb5ac69..ce698c98f80e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ - `[docs]` Fix broken link pointing to legacy JS file in "Snapshot Testing". - `[jest]` [**BREAKING**] Use ESM exports ([#8874](https://github.com/facebook/jest/pull/8874)) - `[jest-cli]` [**BREAKING**] Use ESM exports ([#8874](https://github.com/facebook/jest/pull/8874)) +- `[jest-cli]` [**BREAKING**] Remove re-exports from `@jest/core` ([#8874](https://github.com/facebook/jest/pull/8874)) - `[jest-environment-jsdom]` [**BREAKING**] Upgrade JSDOM from v11 to v15 ([#8851](https://github.com/facebook/jest/pull/8851)) - `[jest-util]` [**BREAKING**] Remove deprecated exports ([#8863](https://github.com/facebook/jest/pull/8863)) - `[jest-validate]` [**BREAKING**] Use ESM exports ([#8874](https://github.com/facebook/jest/pull/8874)) diff --git a/packages/jest-cli/src/index.ts b/packages/jest-cli/src/index.ts index 2f8b64d151d9..67f1ad99ff3f 100644 --- a/packages/jest-cli/src/index.ts +++ b/packages/jest-cli/src/index.ts @@ -5,12 +5,4 @@ * LICENSE file in the root directory of this source tree. */ -// TODO: remove @jest/core exports for the next major -export { - SearchSource, - TestScheduler, - TestWatcher, - getVersion, - runCLI, -} from '@jest/core'; export {run} from './cli'; diff --git a/packages/jest/package.json b/packages/jest/package.json index c93b3082f821..f094070eaccf 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -5,6 +5,7 @@ "main": "build/jest.js", "types": "build/jest.d.ts", "dependencies": { + "@jest/core": "^24.9.0", "import-local": "^3.0.2", "jest-cli": "^24.9.0" }, diff --git a/packages/jest/src/jest.ts b/packages/jest/src/jest.ts index 9a30dee1c3f9..ff2c31c2f394 100644 --- a/packages/jest/src/jest.ts +++ b/packages/jest/src/jest.ts @@ -10,6 +10,7 @@ export { TestScheduler, TestWatcher, getVersion, - run, runCLI, -} from 'jest-cli'; +} from '@jest/core'; + +export {run} from 'jest-cli'; diff --git a/packages/jest/tsconfig.json b/packages/jest/tsconfig.json index 0e089576b519..f3e9271cd4a7 100644 --- a/packages/jest/tsconfig.json +++ b/packages/jest/tsconfig.json @@ -5,6 +5,7 @@ "outDir": "build" }, "references": [ - {"path": "../jest-cli"} + {"path": "../jest-cli"}, + {"path": "../jest-core"} ] }