diff --git a/src/testRunner/tests.ts b/src/testRunner/tests.ts index 8f4af97820f5e..1959f2c0d363b 100644 --- a/src/testRunner/tests.ts +++ b/src/testRunner/tests.ts @@ -199,8 +199,8 @@ export * from "./unittests/tsserver/partialSemanticServer.js"; export * from "./unittests/tsserver/pasteEdits.js"; export * from "./unittests/tsserver/plugins.js"; export * from "./unittests/tsserver/pluginsAsync.js"; -export * from "./unittests/tsserver/projectImportHelpers.js"; export * from "./unittests/tsserver/projectErrors.js"; +export * from "./unittests/tsserver/projectImportHelpers.js"; export * from "./unittests/tsserver/projectReferenceCompileOnSave.js"; export * from "./unittests/tsserver/projectReferenceErrors.js"; export * from "./unittests/tsserver/projectReferences.js"; diff --git a/src/testRunner/unittests/tsserver/projectImportHelpers.ts b/src/testRunner/unittests/tsserver/projectImportHelpers.ts index 18131ab274f8f..b8333c35dec52 100644 --- a/src/testRunner/unittests/tsserver/projectImportHelpers.ts +++ b/src/testRunner/unittests/tsserver/projectImportHelpers.ts @@ -5,9 +5,7 @@ import { openFilesForSession, TestSession, } from "../helpers/tsserver.js"; -import { - createServerHost, -} from "../helpers/virtualFileSystemWithWatch.js"; +import { createServerHost } from "../helpers/virtualFileSystemWithWatch.js"; describe("unittests:: tsserver:: projectImportHelpers::", () => { it("import helpers sucessfully", () => { @@ -16,24 +14,21 @@ describe("unittests:: tsserver:: projectImportHelpers::", () => { content: ` export type Foo { bar: number; -}; -` - } +};`, + }; const file1 = { path: "/a/file1.ts", content: ` import { Foo } from "./type"; const a: Foo = { bar : 1 }; -a.bar; -`, +a.bar;`, }; const file2 = { path: "/a/file2.ts", content: ` import { Foo } from "./type"; const a: Foo = { bar : 2 }; -a.bar; -`, +a.bar;`, }; const config1 = { @@ -44,7 +39,7 @@ a.bar; importHelpers: true, }, }), - } + }; const file3 = { path: "/file3.js", @@ -67,10 +62,10 @@ a.bar; arguments: { file: file1.path, line: 4, - offset: 3 + offset: 3, }, }); baselineTsserverLogs("importHelpers", "import helpers successfully", session); }); -}); \ No newline at end of file +});