From aa183ad7cfe6346248801c280d89f9fad7c3cfee Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 9 Feb 2024 17:36:49 +0100 Subject: chore(deps): replace vitest v1 deprecations (#2590) --- test/faker.spec.ts | 4 ++-- test/simple-faker.spec.ts | 4 ++-- 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)); -- cgit v1.2.3