diff --git a/CHANGELOG.md b/CHANGELOG.md index 474a8115a45d..488d1866fe7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,13 +16,7 @@ - `[babel-preset-jest]` Enable all syntax plugins not enabled by default that works on current version of Node ([#9774](https://github.com/facebook/jest/pull/9774)) - `[jest-circus]` Enable writing async test event handlers ([#9397](https://github.com/facebook/jest/pull/9397)) - `[jest-runtime, @jest/transformer]` Support passing `supportsDynamicImport` and `supportsStaticESM` ([#9597](https://github.com/facebook/jest/pull/9597)) -- `[@jest/core]` Respect NODE_PRESERVE_SYMLINKS environment variable when resolving file paths ([#9732](https://github.com/facebook/jest/pull/9732/files)) -- `[@jest/transform]` Respect NODE_PRESERVE_SYMLINKS environment variable when resolving file paths ([#9732](https://github.com/facebook/jest/pull/9732/files)) -- `[jest-cli]` Respect NODE_PRESERVE_SYMLINKS environment variable when resolving file paths ([#9732](https://github.com/facebook/jest/pull/9732/files)) -- `[jest-config]` Respect NODE_PRESERVE_SYMLINKS environment variable when resolving file paths ([#9732](https://github.com/facebook/jest/pull/9732/files)) -- `[jest-haste-map]` Respect NODE_PRESERVE_SYMLINKS environment variable when resolving file paths ([#9732](https://github.com/facebook/jest/pull/9732/files)) -- `[jest-resolve]` Respect NODE_PRESERVE_SYMLINKS environment variable when resolving file paths ([#9732](https://github.com/facebook/jest/pull/9732/files)) -- `[jest-runtime]` Respect NODE_PRESERVE_SYMLINKS environment variable when resolving file paths ([#9732](https://github.com/facebook/jest/pull/9732/files)) +- `[*]` Respect NODE_PRESERVE_SYMLINKS environment variable when resolving file paths ([#9732](https://github.com/facebook/jest/pull/9732)) ### Chore & Maintenance diff --git a/packages/jest-resolve/src/defaultResolver.ts b/packages/jest-resolve/src/defaultResolver.ts index 8e4e04a2d6a4..3006e1f34bfb 100644 --- a/packages/jest-resolve/src/defaultResolver.ts +++ b/packages/jest-resolve/src/defaultResolver.ts @@ -6,11 +6,11 @@ */ import * as fs from 'fs'; -import { sync as resolveSync } from 'resolve'; -import { sync as browserResolve } from 'browser-resolve'; -import { sync as _realpath } from 'realpath-native'; +import {sync as resolveSync} from 'resolve'; +import {sync as browserResolve} from 'browser-resolve'; +import {sync as _realpath} from 'realpath-native'; import pnpResolver from 'jest-pnp-resolver'; -import type { Config } from '@jest/types'; +import type {Config} from '@jest/types'; const PRESERVE_SYMLINKS = process.env.NODE_PRESERVE_SYMLINKS; function realpath(p: string) {