From f35acfc0c9d789720db708fb56da926a83729120 Mon Sep 17 00:00:00 2001 From: "ezzatron-renovate[bot]" <147964408+ezzatron-renovate[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 17:55:11 +0000 Subject: [PATCH 1/2] Update dependency prettier-plugin-organize-imports to v4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a874f38..ae5f7e6 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "eslint-plugin-promise": "^6.0.0", "eslint-plugin-vitest": "^0.4.0", "prettier": "^3.0.0", - "prettier-plugin-organize-imports": "^3.0.1", + "prettier-plugin-organize-imports": "^4.0.0", "ts-node": "^10.9.1", "typescript": "^5.0.4", "vite": "^5.1.6", From faf0780d4fc9350f1e283e92521a956b1a4a7eb5 Mon Sep 17 00:00:00 2001 From: Erin Millard Date: Tue, 9 Jul 2024 08:20:07 +1000 Subject: [PATCH 2/2] Fix type issue in tests --- test/suite/initialize.spec.ts | 2 +- test/suite/specification-prettier.spec.ts | 2 +- test/suite/specification.spec.ts | 2 +- test/suite/summary.spec.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/suite/initialize.spec.ts b/test/suite/initialize.spec.ts index d7ac65e..a62544c 100644 --- a/test/suite/initialize.spec.ts +++ b/test/suite/initialize.spec.ts @@ -12,7 +12,7 @@ describe("initialize()", () => { beforeEach(() => { exitCode = undefined; vi.spyOn(process, "exit").mockImplementation((code) => { - exitCode = code ?? 0; + exitCode = (code ?? 0) as number; return undefined as never; }); diff --git a/test/suite/specification-prettier.spec.ts b/test/suite/specification-prettier.spec.ts index 9f308fb..39bd571 100644 --- a/test/suite/specification-prettier.spec.ts +++ b/test/suite/specification-prettier.spec.ts @@ -23,7 +23,7 @@ describe("Specification documents (Prettier unavailable)", () => { beforeEach(() => { exitCode = undefined; vi.spyOn(process, "exit").mockImplementation((code) => { - exitCode = code ?? 0; + exitCode = (code ?? 0) as number; return undefined as never; }); diff --git a/test/suite/specification.spec.ts b/test/suite/specification.spec.ts index 679e9f4..d9fb150 100644 --- a/test/suite/specification.spec.ts +++ b/test/suite/specification.spec.ts @@ -31,7 +31,7 @@ describe("Specification documents", () => { beforeEach(() => { exitCode = undefined; vi.spyOn(process, "exit").mockImplementation((code) => { - exitCode = code ?? 0; + exitCode = (code ?? 0) as number; return undefined as never; }); diff --git a/test/suite/summary.spec.ts b/test/suite/summary.spec.ts index 74e4802..70a912c 100644 --- a/test/suite/summary.spec.ts +++ b/test/suite/summary.spec.ts @@ -31,7 +31,7 @@ describe("Validation summary", () => { beforeEach(() => { exitCode = undefined; vi.spyOn(process, "exit").mockImplementation((code) => { - exitCode = code ?? 0; + exitCode = (code ?? 0) as number; return undefined as never; });