antvis/G2

[Bug]: 依赖包更新导致单测大面积错误 #6721

BQXBQX posted onGitHub

Describe the bug / 问题描述

大部分的单测快照 svg 格式发生变化,但是渲染结果没有变化。 <img width="1312" alt="Image" src="https://github.com/user-attachments/assets/4b89c17a-94da-4def-86d1-ff4075afaf7e" /> 经初步 debug 发现是包 @antv/g-svg 2.0.35 版本问题导致。

https://github.com/antvis/G2/actions/runs/14132874562

Steps to Reproduce the Bug or Issue / 重现步骤

// 删除 node_modules 包和 lock 文件
rm -rf node_modules
// 安装依赖
npm i
// 运行测试
npm test

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

如果 svg 变化是 g 发包带来的,那就来一个 pr 更新所有 svg,然后人工确认下视觉上是否一致即可。

posted by hustcc 27 days ago

Fund this Issue

$0.00
Funded

Pull requests