diff --git a/CHANGELOG.md b/CHANGELOG.md index 746172c7f036..0cef7f40d44a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -139,6 +139,7 @@ - `[eslint-config-fb-strict]` Move package from this repo to `fbjs` repo ([#10739](https://github.com/facebook/jest/pull/10739)) - `[examples]` Update TypeScript example to show use of newer Jest types ([#10399](https://github.com/facebook/jest/pull/10399)) - `[jest-cli]` chore: standardize files and folder names ([#10698](https://github.com/facebook/jest/pull/10698)) +- `[jest-config]` Switch ts-node `Register` type to `Service` due to deprecation ([#11210](https://github.com/facebook/jest/pull/11210)) ## 26.6.1 diff --git a/packages/jest-config/src/readConfigFileAndSetRootDir.ts b/packages/jest-config/src/readConfigFileAndSetRootDir.ts index 508b68e94519..953c3160be0d 100644 --- a/packages/jest-config/src/readConfigFileAndSetRootDir.ts +++ b/packages/jest-config/src/readConfigFileAndSetRootDir.ts @@ -7,7 +7,7 @@ import * as path from 'path'; import * as fs from 'graceful-fs'; -import type {Register} from 'ts-node'; +import type {Service} from 'ts-node'; import type {Config} from '@jest/types'; import {interopRequireDefault, requireOrImportModule} from 'jest-util'; import { @@ -79,7 +79,7 @@ export default async function readConfigFileAndSetRootDir( const loadTSConfigFile = async ( configPath: Config.Path, ): Promise => { - let registerer: Register; + let registerer: Service; // Register TypeScript compiler instance try {