From b9084101189639524863e15ef7557ea6bc6704b9 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 1 Dec 2019 21:38:42 +0100 Subject: [PATCH] chore: do not export `ScriptTransformer` (#9256) --- CHANGELOG.md | 1 + packages/jest-runtime/src/index.ts | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8bf74829b8e..792a9f52cc49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - `[jest-matcher-utils]` Add `BigInt` support to `ensureNumbers` `ensureActualIsNumber`, `ensureExpectedIsNumber` ([#8382](https://github.com/facebook/jest/pull/8382)) - `[jest-reporters]` Export utils for path formatting ([#9162](https://github.com/facebook/jest/pull/9162)) - `[jest-runner]` Warn if a worker had to be force exited ([#8206](https://github.com/facebook/jest/pull/8206)) +- `[jest-runtime]` [**BREAKING**] Do not export `ScriptTransformer` - it can be imported from `@jest/transform` instead ([#9256](https://github.com/facebook/jest/pull/9256)) - `[jest-snapshot]` Display change counts in annotation lines ([#8982](https://github.com/facebook/jest/pull/8982)) - `[jest-snapshot]` [**BREAKING**] Improve report when the matcher has properties ([#9104](https://github.com/facebook/jest/pull/9104)) - `[jest-snapshot]` Improve colors when snapshots are updatable ([#9132](https://github.com/facebook/jest/pull/9132)) diff --git a/packages/jest-runtime/src/index.ts b/packages/jest-runtime/src/index.ts index e6de0ba3d73e..3bdd3be20cfa 100644 --- a/packages/jest-runtime/src/index.ts +++ b/packages/jest-runtime/src/index.ts @@ -80,8 +80,6 @@ const unmockRegExpCache = new WeakMap(); /* eslint-disable-next-line no-redeclare */ class Runtime { - static ScriptTransformer: typeof ScriptTransformer; - private _cacheFS: CacheFS; private _config: Config.ProjectConfig; private _coverageOptions: ShouldInstrumentOptions; @@ -1088,6 +1086,4 @@ class Runtime { } } -Runtime.ScriptTransformer = ScriptTransformer; - export = Runtime;