Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 4, 2024
1 parent a5d74ee commit 5faa6c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import unjs from "eslint-config-unjs";

export default unjs(
{
ignores: ["**/.nuxt"],
ignores: ["**/.nuxt", "**/.output"],
},
{
rules: {
Expand Down
2 changes: 1 addition & 1 deletion test/errors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createError } from "../src";
import { describeMatrix } from "./_setup";

describeMatrix("errors", (t, { it, expect }) => {
const consoleMock = ((global.console.error as any) = vi.fn());
const consoleMock = ((globalThis.console.error as any) = vi.fn());

it("logs errors", async () => {
t.app.use(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/lazy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineLazyEventHandler } from "../src";
import { describeMatrix } from "./_setup";

describeMatrix("lazy", (t, { it, expect }) => {
(global.console.error as any) = vi.fn();
(globalThis.console.error as any) = vi.fn();

const handlers = [
["sync", () => "lazy"],
Expand Down

0 comments on commit 5faa6c7

Please sign in to comment.