Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): replace vitest v1 deprecations #2590

Merged
merged 5 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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