diff --git a/src/lib/converter/utils/repository.ts b/src/lib/converter/utils/repository.ts index 178ce4bae..e08b38aa5 100644 --- a/src/lib/converter/utils/repository.ts +++ b/src/lib/converter/utils/repository.ts @@ -1,7 +1,6 @@ import { spawnSync } from "child_process"; import type { Logger } from "../../utils"; import { BasePath } from "../utils/base-path"; -import { Bench } from "../../utils/perf"; import { NonEnumerable } from "../../utils/general"; import { dirname } from "path"; import { insertSorted } from "../../utils/array"; @@ -120,7 +119,6 @@ export class GitRepository implements Repository { * @param path The potential repository root. * @returns A new instance of {@link GitRepository} or undefined. */ - @Bench static tryCreateRepository( path: string, sourceLinkTemplate: string, @@ -199,7 +197,6 @@ export class RepositoryManager { * @param fileName The name of the file a repository should be looked for. * @returns The found repository info or undefined. */ - @Bench getRepository(fileName: string): Repository | undefined { if (this.disableGit) { return new AssumedRepository( diff --git a/src/test/utils/options/readers/package-json.test.ts b/src/test/utils/options/readers/package-json.test.ts index 899f38fc6..fbeed7122 100644 --- a/src/test/utils/options/readers/package-json.test.ts +++ b/src/test/utils/options/readers/package-json.test.ts @@ -30,11 +30,10 @@ describe("Options - PackageJsonReader", () => { const proj = project(testTitle.replace(/[ "]/g, "_")); proj.addFile("package.json", pkgJsonContent); proj.write(); + after(() => proj.rm()); await optsContainer.read(testLogger, proj.cwd); - proj.rm(); - test(testLogger); testLogger.expectNoOtherMessages(); }); diff --git a/src/test/utils/options/readers/tsconfig.test.ts b/src/test/utils/options/readers/tsconfig.test.ts index 5be5977b0..783a087a7 100644 --- a/src/test/utils/options/readers/tsconfig.test.ts +++ b/src/test/utils/options/readers/tsconfig.test.ts @@ -47,6 +47,7 @@ describe("Options - TSConfigReader", () => { function testError(name: string, file: object) { it(name, async () => { const project = tempdirProject(); + after(() => project.rm()); project.addJsonFile("tsconfig.json", file); await readWithProject(project, true, false); equal(logger.hasErrors(), true, "No error was logged"); diff --git a/src/test/utils/options/readers/typedoc.test.ts b/src/test/utils/options/readers/typedoc.test.ts index ab0a07a37..00feb45f1 100644 --- a/src/test/utils/options/readers/typedoc.test.ts +++ b/src/test/utils/options/readers/typedoc.test.ts @@ -13,6 +13,8 @@ describe("Options - TypeDocReader", () => { it("Supports comments in json", async () => { const project = fsProject("jsonc"); + after(() => project.rm()); + project.addFile("typedoc.json", '//comment\n{"name": "comment"}'); const logger = new TestLogger(); @@ -20,7 +22,6 @@ describe("Options - TypeDocReader", () => { options.reset(); options.setValue("options", project.cwd); await options.read(logger); - project.rm(); logger.expectNoOtherMessages(); equal(options.getValue("name"), "comment");