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

测试中 stub 的译法 #1057

Open
3 tasks done
Jinjiang opened this issue Jan 7, 2025 · 1 comment
Open
3 tasks done

测试中 stub 的译法 #1057

Jinjiang opened this issue Jan 7, 2025 · 1 comment

Comments

@Jinjiang
Copy link
Member

Jinjiang commented Jan 7, 2025

提问须知

  • 我确定这是官方版本 cn.vuejs.org 的 issue,而不是其他非官方翻译版本
  • 我确定这是翻译问题,而不是英文原文的问题 (英文原文的问题请移步至英文文档仓库讨论,相关结论我们会定期从英文版同步)
  • 我确定这不是 Vue.js 使用方面的问题 (此类问题请在我们的论坛Discord 聊天室StackOverflow 上发帖求助)

问题类型

译法讨论

问题描述

如题,目前已知的译法包括:

  • 存根
  • 替身
  • stub (保留英文)

我个人倾向于译为“测试替身”,易于理解且避免歧义

也希望得到大家的更多意见和反馈

谢谢

@wxsms
Copy link
Member

wxsms commented Jan 9, 2025

https://test-utils.vuejs.org/zh/guide/advanced/stubs-shallow-mount

这里翻译为了”桩“。

stub->桩
stubbing->桩化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants