From 1df7d05d30972f8e39c9cb280044bc09aa210b62 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 1 Dec 2019 21:13:00 +0100 Subject: [PATCH 1/2] chore: do not export `ScriptTransformer` --- 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..1e52693403bd 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 - `[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; From cbeb8ff0cedbdf803f0949fc980782f5bbea8a9c Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 1 Dec 2019 21:14:20 +0100 Subject: [PATCH 2/2] link to PR --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e52693403bd..792a9f52cc49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +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 +- `[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))