From 05cbd1d00c340f26dc411f509f6adc4d5131db02 Mon Sep 17 00:00:00 2001 From: SeinopSys Date: Sun, 3 Apr 2022 01:15:34 +0200 Subject: [PATCH] fix compile error in tests --- assets/package-lock.json | 2 +- assets/package.json | 2 +- assets/test/jest-setup.ts | 1 + assets/tsconfig.json | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/package-lock.json b/assets/package-lock.json index 9f1d65cf..989b389e 100644 --- a/assets/package-lock.json +++ b/assets/package-lock.json @@ -53,7 +53,7 @@ "eslint-plugin-jest-dom": "^4.0.3", "jest": "^29.4.3", "jest-fetch-mock": "^3.0.3", - "ts-jest": "^29.0.5" + "ts-jest": "^29.1.0" } }, "node_modules/@adobe/css-tools": { diff --git a/assets/package.json b/assets/package.json index edbf00a3..0f7f88a7 100644 --- a/assets/package.json +++ b/assets/package.json @@ -56,6 +56,6 @@ "eslint-plugin-jest-dom": "^4.0.3", "jest": "^29.4.3", "jest-fetch-mock": "^3.0.3", - "ts-jest": "^29.0.5" + "ts-jest": "^29.1.0" } } diff --git a/assets/test/jest-setup.ts b/assets/test/jest-setup.ts index 62d5bf76..1f7fb536 100644 --- a/assets/test/jest-setup.ts +++ b/assets/test/jest-setup.ts @@ -20,4 +20,5 @@ window.booru = { watchedTagList: [], hiddenFilter: blankFilter, spoileredFilter: blankFilter, + tagsVersion: 5 }; diff --git a/assets/tsconfig.json b/assets/tsconfig.json index 3bf8253c..5ad92fc2 100644 --- a/assets/tsconfig.json +++ b/assets/tsconfig.json @@ -6,6 +6,7 @@ "esModuleInterop": true, "moduleResolution": "Node", "allowJs": true, + "skipLibCheck": true, "lib": [ "ES2018", "DOM"