From 2d2d5fe77dcb6dbd49bf27c7ca9f3403e6a65329 Mon Sep 17 00:00:00 2001
From: Keisuke Umeno <9renpoto@gmail.com>
Date: Fri, 2 Feb 2024 08:30:52 +0900
Subject: [PATCH] fix: skip lint
---
__tests__/Header.test.tsx | 1 +
__tests__/deps.ts | 2 +-
__tests__/index.test.tsx | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/__tests__/Header.test.tsx b/__tests__/Header.test.tsx
index 2d40196..47526b8 100644
--- a/__tests__/Header.test.tsx
+++ b/__tests__/Header.test.tsx
@@ -5,6 +5,7 @@ import { Header } from "../components/Header.tsx";
describe("Header", () => {
beforeEach(() => {
+ // deno-lint-ignore no-window
window.document = new DOMParser().parseFromString(
"",
"text/html",
diff --git a/__tests__/deps.ts b/__tests__/deps.ts
index abca7ac..0146afa 100644
--- a/__tests__/deps.ts
+++ b/__tests__/deps.ts
@@ -4,7 +4,7 @@
///
///
-export { DOMParser } from "https://deno.land/x/deno_dom@v0.1.37/deno-dom-wasm.ts";
+export { DOMParser } from "https://deno.land/x/deno_dom@v0.1.45/deno-dom-wasm.ts";
export { render } from "https://esm.sh/@testing-library/preact@3.2.2";
import "npm:textlint";
import "npm:@9renpoto/textlint-config-ja";
diff --git a/__tests__/index.test.tsx b/__tests__/index.test.tsx
index dd77b02..4d0989c 100644
--- a/__tests__/index.test.tsx
+++ b/__tests__/index.test.tsx
@@ -6,6 +6,7 @@ import { PostCard } from "../routes/index.tsx";
describe("PostCard", () => {
beforeEach(() => {
+ // deno-lint-ignore no-window
window.document = new DOMParser().parseFromString(
"",
"text/html",