Skip to content

Commit

Permalink
remove re-exports from jest-core
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Aug 26, 2019
1 parent e32aad1 commit a238374
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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))
Expand Down
8 changes: 0 additions & 8 deletions packages/jest-cli/src/index.ts
Expand Up @@ -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';
1 change: 1 addition & 0 deletions packages/jest/package.json
Expand Up @@ -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"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/jest/src/jest.ts
Expand Up @@ -10,6 +10,7 @@ export {
TestScheduler,
TestWatcher,
getVersion,
run,
runCLI,
} from 'jest-cli';
} from '@jest/core';

export {run} from 'jest-cli';
3 changes: 2 additions & 1 deletion packages/jest/tsconfig.json
Expand Up @@ -5,6 +5,7 @@
"outDir": "build"
},
"references": [
{"path": "../jest-cli"}
{"path": "../jest-cli"},
{"path": "../jest-core"}
]
}

0 comments on commit a238374

Please sign in to comment.