Skip to content

Commit

Permalink
cleaner fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Jan 16, 2024
1 parent 29196b7 commit 86b060c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { MockInstance, vi } from "vitest";
import { vi } from "vitest";

// MockInstance is here to avoid a strange portability error.

export const mockError = (): MockInstance =>
export const mockError = () =>

Check failure on line 3 in src/test-utils.ts

View workflow job for this annotation

GitHub Actions / build

The inferred type of 'mockError' cannot be named without a reference to '.pnpm/@vitest+spy@1.1.3/node_modules/@vitest/spy'. This is likely not portable. A type annotation is necessary.

Check failure on line 3 in src/test-utils.ts

View workflow job for this annotation

GitHub Actions / build

The inferred type of 'mockError' cannot be named without a reference to '.pnpm/@vitest+spy@1.1.3/node_modules/@vitest/spy'. This is likely not portable. A type annotation is necessary.

Check failure on line 3 in src/test-utils.ts

View workflow job for this annotation

GitHub Actions / build

The inferred type of 'mockError' cannot be named without a reference to '.pnpm/@vitest+spy@1.1.3/node_modules/@vitest/spy'. This is likely not portable. A type annotation is necessary.

Check failure on line 3 in src/test-utils.ts

View workflow job for this annotation

GitHub Actions / build

The inferred type of 'mockError' cannot be named without a reference to '.pnpm/@vitest+spy@1.1.3/node_modules/@vitest/spy'. This is likely not portable. A type annotation is necessary.
vi.spyOn(console, "error").mockImplementation(() => undefined);

export const mockLog = () =>

Check failure on line 6 in src/test-utils.ts

View workflow job for this annotation

GitHub Actions / build

The inferred type of 'mockLog' cannot be named without a reference to '.pnpm/@vitest+spy@1.1.3/node_modules/@vitest/spy'. This is likely not portable. A type annotation is necessary.

Check failure on line 6 in src/test-utils.ts

View workflow job for this annotation

GitHub Actions / build

The inferred type of 'mockLog' cannot be named without a reference to '.pnpm/@vitest+spy@1.1.3/node_modules/@vitest/spy'. This is likely not portable. A type annotation is necessary.

Check failure on line 6 in src/test-utils.ts

View workflow job for this annotation

GitHub Actions / build

The inferred type of 'mockLog' cannot be named without a reference to '.pnpm/@vitest+spy@1.1.3/node_modules/@vitest/spy'. This is likely not portable. A type annotation is necessary.
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"declaration": false,
"declarationMap": false,
"esModuleInterop": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
Expand Down

0 comments on commit 86b060c

Please sign in to comment.