Skip to content

Commit

Permalink
chore(deps): replace vitest v1 deprecations (#2590)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Feb 9, 2024
1 parent 9257f58 commit aa183ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/faker.spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions test/simple-faker.spec.ts
Original file line number Diff line number Diff line change
@@ -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));

Expand Down

0 comments on commit aa183ad

Please sign in to comment.