From 6e0eac514fb035f904b3b767a0a7663d5b30ec55 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 16:39:45 +0100 Subject: chore(deps): update vitest to v3 (major) (#3389) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- test/internal/bind-this-to-member-functions.spec.ts | 2 +- test/modules/finance.spec.ts | 2 +- test/scripts/apidocs/verify-jsdoc-tags.spec.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/internal/bind-this-to-member-functions.spec.ts b/test/internal/bind-this-to-member-functions.spec.ts index 22a3012d..93b0a9cb 100644 --- a/test/internal/bind-this-to-member-functions.spec.ts +++ b/test/internal/bind-this-to-member-functions.spec.ts @@ -19,7 +19,7 @@ describe('internal', () => { const someMethodWithoutBind = someModule.someMethod; expect(() => someMethodWithoutBind()).toThrow( - new Error("Cannot read properties of undefined (reading 'faker')") + new TypeError("Cannot read properties of undefined (reading 'faker')") ); bindThisToMemberFunctions(someModule); diff --git a/test/modules/finance.spec.ts b/test/modules/finance.spec.ts index eab50d94..29b490d2 100644 --- a/test/modules/finance.spec.ts +++ b/test/modules/finance.spec.ts @@ -388,7 +388,7 @@ describe('finance', () => { expect(bitcoinAddress).toBeTruthy(); expect(bitcoinAddress).toBeTypeOf('string'); expect(bitcoinAddress).toSatisfy(isBtcAddress); - expect(bitcoinAddress).toSatisfy((v) => + expect(bitcoinAddress).toSatisfy((v: string) => regexes.some((r) => r.test(v)) ); } diff --git a/test/scripts/apidocs/verify-jsdoc-tags.spec.ts b/test/scripts/apidocs/verify-jsdoc-tags.spec.ts index dd27b3b3..703e42cf 100644 --- a/test/scripts/apidocs/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidocs/verify-jsdoc-tags.spec.ts @@ -209,6 +209,8 @@ ${examples}`; expect(consoleWarnSpy).toHaveBeenCalled(); expect(deprecated).not.toBe(''); } + + consoleWarnSpy.mockRestore(); }); describe.each(signature.parameters.map((p) => [p.name, p]))( -- cgit v1.2.3