Skip to content

Commit b908410

Browse files
authored
chore: do not export ScriptTransformer (#9256)
1 parent d333cd5 commit b908410

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- `[jest-matcher-utils]` Add `BigInt` support to `ensureNumbers` `ensureActualIsNumber`, `ensureExpectedIsNumber` ([#8382](https://github.com/facebook/jest/pull/8382))
2626
- `[jest-reporters]` Export utils for path formatting ([#9162](https://github.com/facebook/jest/pull/9162))
2727
- `[jest-runner]` Warn if a worker had to be force exited ([#8206](https://github.com/facebook/jest/pull/8206))
28+
- `[jest-runtime]` [**BREAKING**] Do not export `ScriptTransformer` - it can be imported from `@jest/transform` instead ([#9256](https://github.com/facebook/jest/pull/9256))
2829
- `[jest-snapshot]` Display change counts in annotation lines ([#8982](https://github.com/facebook/jest/pull/8982))
2930
- `[jest-snapshot]` [**BREAKING**] Improve report when the matcher has properties ([#9104](https://github.com/facebook/jest/pull/9104))
3031
- `[jest-snapshot]` Improve colors when snapshots are updatable ([#9132](https://github.com/facebook/jest/pull/9132))

packages/jest-runtime/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ const unmockRegExpCache = new WeakMap();
8080

8181
/* eslint-disable-next-line no-redeclare */
8282
class Runtime {
83-
static ScriptTransformer: typeof ScriptTransformer;
84-
8583
private _cacheFS: CacheFS;
8684
private _config: Config.ProjectConfig;
8785
private _coverageOptions: ShouldInstrumentOptions;
@@ -1088,6 +1086,4 @@ class Runtime {
10881086
}
10891087
}
10901088

1091-
Runtime.ScriptTransformer = ScriptTransformer;
1092-
10931089
export = Runtime;

0 commit comments

Comments
 (0)