Skip to content

Commit 420bcb7

Browse files
authored
Switch ts-node Register type to Service due to deprecation (#11210)
1 parent 27e4ea4 commit 420bcb7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
- `[eslint-config-fb-strict]` Move package from this repo to `fbjs` repo ([#10739](https://github.com/facebook/jest/pull/10739))
140140
- `[examples]` Update TypeScript example to show use of newer Jest types ([#10399](https://github.com/facebook/jest/pull/10399))
141141
- `[jest-cli]` chore: standardize files and folder names ([#10698](https://github.com/facebook/jest/pull/10698))
142+
- `[jest-config]` Switch ts-node `Register` type to `Service` due to deprecation ([#11210](https://github.com/facebook/jest/pull/11210))
142143

143144
## 26.6.1
144145

packages/jest-config/src/readConfigFileAndSetRootDir.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import * as path from 'path';
99
import * as fs from 'graceful-fs';
10-
import type {Register} from 'ts-node';
10+
import type {Service} from 'ts-node';
1111
import type {Config} from '@jest/types';
1212
import {interopRequireDefault, requireOrImportModule} from 'jest-util';
1313
import {
@@ -79,7 +79,7 @@ export default async function readConfigFileAndSetRootDir(
7979
const loadTSConfigFile = async (
8080
configPath: Config.Path,
8181
): Promise<Config.InitialOptions> => {
82-
let registerer: Register;
82+
let registerer: Service;
8383

8484
// Register TypeScript compiler instance
8585
try {

0 commit comments

Comments
 (0)