Skip to content

Commit

Permalink
Switch ts-node Register type to Service due to deprecation (#11210)
Browse files Browse the repository at this point in the history
  • Loading branch information
varwasabi authored Mar 18, 2021
1 parent 27e4ea4 commit 420bcb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions packages/jest-config/src/readConfigFileAndSetRootDir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -79,7 +79,7 @@ export default async function readConfigFileAndSetRootDir(
const loadTSConfigFile = async (
configPath: Config.Path,
): Promise<Config.InitialOptions> => {
let registerer: Register;
let registerer: Service;

// Register TypeScript compiler instance
try {
Expand Down

0 comments on commit 420bcb7

Please sign in to comment.