mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-13 11:46:08 -05:00
Simplify handling of node:-prefixed modules in auto-imports (#59702)
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
File,
|
||||
} from "../helpers/virtualFileSystemWithWatch.js";
|
||||
|
||||
describe("unittests:: tsserver:: duplicate packages", () => {
|
||||
describe("unittests:: tsserver:: duplicatePackages", () => {
|
||||
// Tests that 'moduleSpecifiers.ts' will import from the redirecting file, and not from the file it redirects to, if that can provide a global module specifier.
|
||||
it("works with import fixes", () => {
|
||||
const packageContent = "export const foo: number;";
|
||||
|
||||
@@ -1455,7 +1455,7 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => {
|
||||
const { discoverTypings, baseline } = setup([f]);
|
||||
const cache = new Map<string, ts.JsTyping.CachedTyping>();
|
||||
|
||||
for (const name of ts.JsTyping.nodeCoreModuleList) {
|
||||
for (const name of ts.nodeCoreModules) {
|
||||
discoverTypings(
|
||||
[f.path],
|
||||
ts.getDirectoryPath(f.path as ts.Path),
|
||||
|
||||
Reference in New Issue
Block a user