fix: jest

This commit is contained in:
hypercross 2026-03-23 20:24:25 +08:00
parent 30ddcfc32d
commit 6f8be557b4
2 changed files with 1 additions and 6 deletions

View File

@ -1,10 +1,5 @@
import { getRoundedPolygonPoints, getTangentCircleCenter, getProjectedPoint } from './rounded'; 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', () => { describe('getProjectedPoint', () => {
test('should project point onto line segment', () => { test('should project point onto line segment', () => {
// 点 (2, 2) 投影到线段 (0, 0) -> (4, 0) // 点 (2, 2) 投影到线段 (0, 0) -> (4, 0)

View File

@ -15,7 +15,7 @@
"outDir": "./dist", "outDir": "./dist",
"rootDir": "./src", "rootDir": "./src",
"lib": ["ES2022", "DOM", "DOM.Iterable"], "lib": ["ES2022", "DOM", "DOM.Iterable"],
"types": ["node"] "types": ["node", "jest"]
}, },
"include": ["src/**/*"], "include": ["src/**/*"],
"exclude": ["node_modules", "dist"] "exclude": ["node_modules", "dist"]