mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 10:46:28 -05:00
Do not lowercase typeReference directive name (#58525)
This commit is contained in:
@@ -26,4 +26,19 @@ describe("unittests:: tsc:: forceConsistentCasingInFileNames::", () => {
|
||||
commandLineArgs: ["-p", "/home/src/projects/project/tsconfig.json", "--explainFiles"],
|
||||
fs: () => loadProjectFromFiles(getFsContentsForMultipleErrorsForceConsistentCasingInFileNames()),
|
||||
});
|
||||
|
||||
verifyTsc({
|
||||
scenario: "forceConsistentCasingInFileNames",
|
||||
subScenario: "with type ref from file",
|
||||
commandLineArgs: ["-p", "/src/project/src", "--explainFiles", "--traceResolution"],
|
||||
fs: () =>
|
||||
loadProjectFromFiles({
|
||||
"/src/project/src/fileOne.d.ts": `declare class c { }`,
|
||||
"/src/project/src/file2.d.ts": dedent`
|
||||
/// <reference types="./fileOne.d.ts"/>
|
||||
declare const y: c;
|
||||
`,
|
||||
"/src/project/src/tsconfig.json": "{ }",
|
||||
}),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
libFile,
|
||||
} from "../helpers/virtualFileSystemWithWatch.js";
|
||||
|
||||
describe("unittests:: tsserver:: typeReferenceDirectives", () => {
|
||||
describe("unittests:: tsserver:: typeReferenceDirectives::", () => {
|
||||
it("when typeReferenceDirective contains UpperCasePackage", () => {
|
||||
const libProjectLocation = `/user/username/projects/myproject/lib`;
|
||||
const typeLib: File = {
|
||||
@@ -52,6 +52,7 @@ declare class TestLib {
|
||||
compilerOptions: {
|
||||
module: "amd",
|
||||
typeRoots: ["../lib/@types", "../lib/@app"],
|
||||
traceResolution: true,
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user