-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report]: pnpm run test 报错 #1945
Labels
bug
Something isn't working
Comments
看起来是少了个依赖,导致报错了,您可以直接本地安装上看看 |
就是我发现个bug,原本想按你们的PR规范里的步骤提个pr 我翻了下源码,发现你们其实有相应的实现 LogicFlow/packages/core/src/algorithm/edge.ts Lines 52 to 69 in e9f097c
想改一下这个函数,还有它对应的测试用例 |
了解😄,升2.0之后 test 指令的逻辑还没来得及加上,这个pr我们今天看下 |
解决了依赖问题后还有新的报错: PS D:\projects\js\LogicFlow> pnpm test -- packages\core\__tests__\algorithm\egde.test.ts
> logicflow@ test D:\projects\js\LogicFlow
> jest "packages\\core\\__tests__\\algorithm\\egde.test.ts"
FAIL packages/core/__tests__/algorithm/egde.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'Point')
7 | import { GraphModel, BezierEdgeModel } from '../../model'
8 |
> 9 | import Point = LogicFlow.Point
| ^
10 |
11 | type IProps = {
12 | graphModel: GraphModel
at Object.Point (packages/core/src/view/overlay/BezierAdjustOverlay.tsx:9:26)
at Object.require (packages/core/src/view/overlay/index.ts:2:1)
at Object.require (packages/core/src/options.ts:6:1)
at Object.require (packages/core/src/util/animation.ts:2:1)
at Object.require (packages/core/src/util/index.ts:1:1)
at Object.require (packages/core/src/index.ts:5:1)
at Object.require (packages/core/src/LogicFlow.tsx:3:1)
at Object.require (packages/core/src/algorithm/edge.ts:1:1)
at Object.require (packages/core/__tests__/algorithm/egde.test.ts:1:1)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 5.274 s
Ran all test suites matching /packages\\core\\__tests__\\algorithm\\egde.test.ts/i.
ELIFECYCLE Test failed. See above for more details.
PS D:\projects\js\LogicFlow> 有点怀疑是不是循环引用的原因🤔 |
test 目前是有问题的,需要治理一下哈哈,我们今年没抽出时间搞这个,明年应该会专门搞个专项来做测试用例完善 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
发生了什么?
node: v20.10.0
pnpm: 9.12.1
仓库版本: e9f097c
完整日志:
logicflow/core版本
2.0.6
logicflow/extension版本
2.0.10
logicflow/engine版本
No response
浏览器&环境
No response
The text was updated successfully, but these errors were encountered: