diff options
| author | renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> | 2025-02-03 16:39:45 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-03 16:39:45 +0100 |
| commit | 6e0eac514fb035f904b3b767a0a7663d5b30ec55 (patch) | |
| tree | 53cfc91cb4c6f4fd6d2807381bf90aa0b9a64541 /test | |
| parent | b8277c5c54b524274c3bef9ae465ff58f54ca212 (diff) | |
| download | faker-6e0eac514fb035f904b3b767a0a7663d5b30ec55.tar.xz faker-6e0eac514fb035f904b3b767a0a7663d5b30ec55.zip | |
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 <[email protected]>
Diffstat (limited to 'test')
| -rw-r--r-- | test/internal/bind-this-to-member-functions.spec.ts | 2 | ||||
| -rw-r--r-- | test/modules/finance.spec.ts | 2 | ||||
| -rw-r--r-- | test/scripts/apidocs/verify-jsdoc-tags.spec.ts | 2 |
3 files changed, 4 insertions, 2 deletions
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<string>((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]))( |
