aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinigami <[email protected]>2024-02-09 17:36:49 +0100
committerGitHub <[email protected]>2024-02-09 16:36:49 +0000
commitaa183ad7cfe6346248801c280d89f9fad7c3cfee (patch)
treefc9c7ca1a1903624071d484a1b0fa1836377d29b
parent9257f5866c21cb86f94ab576e74bd149910e68aa (diff)
downloadfaker-aa183ad7cfe6346248801c280d89f9fad7c3cfee.tar.xz
faker-aa183ad7cfe6346248801c280d89f9fad7c3cfee.zip
chore(deps): replace vitest v1 deprecations (#2590)
-rw-r--r--test/faker.spec.ts4
-rw-r--r--test/simple-faker.spec.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/faker.spec.ts b/test/faker.spec.ts
index bf1bfafc..06d192c1 100644
--- a/test/faker.spec.ts
+++ b/test/faker.spec.ts
@@ -1,4 +1,4 @@
-import type { SpyInstance } from 'vitest';
+import type { MockInstance } from 'vitest';
import { describe, expect, it, vi } from 'vitest';
import { faker, Faker } from '../src';
import { FakerError } from '../src/errors/faker-error';
@@ -14,7 +14,7 @@ describe('faker', () => {
});
it('should not log anything on startup', () => {
- const spies: SpyInstance[] = keys(console)
+ const spies: MockInstance[] = keys(console)
.filter((key) => typeof console[key] === 'function')
.map((methodName) =>
vi.spyOn(console, methodName as keyof typeof console)
diff --git a/test/simple-faker.spec.ts b/test/simple-faker.spec.ts
index ec1247cf..36536b21 100644
--- a/test/simple-faker.spec.ts
+++ b/test/simple-faker.spec.ts
@@ -1,11 +1,11 @@
-import type { SpyInstance } from 'vitest';
+import type { MockInstance } from 'vitest';
import { describe, expect, it, vi } from 'vitest';
import { SimpleFaker, simpleFaker } from '../src';
import { keys } from '../src/internal/keys';
describe('simpleFaker', () => {
it('should not log anything on startup', () => {
- const spies: SpyInstance[] = keys(console)
+ const spies: MockInstance[] = keys(console)
.filter((key) => typeof console[key] === 'function')
.map((methodName) => vi.spyOn(console, methodName));