Skip to content
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

使用vitest进行测试会报错 #3998

Open
liuzaijiang opened this issue Oct 30, 2023 · 2 comments
Open

使用vitest进行测试会报错 #3998

liuzaijiang opened this issue Oct 30, 2023 · 2 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@liuzaijiang
Copy link

问题描述

测试文件或者测试的相关文件引入@antv/x6,则跑测试案例的时候会报错

重现链接

https://codesandbox.io/s/interesting-lamport-7jhr6s?file=/test/basic.test.tsx

重现步骤

npm run test,使用vitest进行测试

预期行为

不报错

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.15.3]
  • vitest:[0.34.6]

屏幕截图或视频(可选)

image

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 30, 2023

👋 @liuzaijiang

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@NewByVector
Copy link
Contributor

这个看起来是 vitest 的配置问题呀。

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

2 participants