Skip to content

feat/translate docs/testing.md #159

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

Merged
merged 2 commits into from
Sep 15, 2021

Conversation

lequangnamsoraly2009
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Sep 14, 2021

❌ Deploy Preview for vi-reactjs-org failed.

🔨 Explore the source changes: bb8cb15

🔍 Inspect the deploy log: https://app.netlify.com/sites/vi-reactjs-org/deploys/6141852ed24c0a00078633f9

@@ -7,34 +7,43 @@ redirect_from:
next: testing-recipes.html
---

You can test React components similar to testing other JavaScript code.
Bạn có thể kiểm tra các React component tương tự như việc kiểm tra những code Javascript khác.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Từ "test" có thể giữ nguyên bạn nhé.


There are a few ways to test React components. Broadly, they divide into two categories:
Có một số cách để testing các React component. Nói chung, chúng được chia thành 2 thành phần:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

categories -> 2 loại có vẻ hợp lý hơn nè

* **Rendering component trees** in a simplified test environment and asserting on their output.
* **Running a complete app** in a realistic browser environment (also known as “end-to-end” tests).
* **Rendering component trees** trong một môi trường test được đơn giản hóa và khẳng định trên kết quả đầu ra của chúng.
* **Running a complete app** trong một môi trường trình duyệt thực tế (hay còn được gọi là “end-to-end” tests).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Những từ trong ** là in đậm, bạn giúp mình dịch luôn nhé.

@Ryan-LT Ryan-LT merged commit 62965fe into reactjs:main Sep 15, 2021
@Ryan-LT Ryan-LT mentioned this pull request Sep 15, 2021
95 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants