From 6f8be557b4798a32c72e7d10840028695f8294d7 Mon Sep 17 00:00:00 2001 From: hypercross Date: Mon, 23 Mar 2026 20:24:25 +0800 Subject: [PATCH] fix: jest --- src/plotcutter/rounded.test.ts | 5 ----- tsconfig.json | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/plotcutter/rounded.test.ts b/src/plotcutter/rounded.test.ts index 43f482e..21c560e 100644 --- a/src/plotcutter/rounded.test.ts +++ b/src/plotcutter/rounded.test.ts @@ -1,10 +1,5 @@ import { getRoundedPolygonPoints, getTangentCircleCenter, getProjectedPoint } from './rounded'; -/* eslint-disable @typescript-eslint/no-explicit-any */ -declare const describe: any; -declare const test: any; -declare const expect: any; - describe('getProjectedPoint', () => { test('should project point onto line segment', () => { // 点 (2, 2) 投影到线段 (0, 0) -> (4, 0) diff --git a/tsconfig.json b/tsconfig.json index 07446db..146fd53 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,7 @@ "outDir": "./dist", "rootDir": "./src", "lib": ["ES2022", "DOM", "DOM.Iterable"], - "types": ["node"] + "types": ["node", "jest"] }, "include": ["src/**/*"], "exclude": ["node_modules", "dist"]