fix: jest
This commit is contained in:
parent
30ddcfc32d
commit
6f8be557b4
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||||
"types": ["node"]
|
||||
"types": ["node", "jest"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue