We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6334eb7 commit b3e08a8Copy full SHA for b3e08a8
src/content/5/zh/part5c.md
@@ -20,7 +20,7 @@ lang: zh
20
让我们首先安装Vitest和模拟Web浏览器的[jsdom](https://github.com/jsdom/jsdom)库:
21
22
```
23
-npm install --save-vitest vitest jsdom
+npm install --save-dev vitest jsdom
24
25
26
除了Vitest之外,我们还需要另一个测试库,用于帮助我们渲染组件进行测试。目前最好的选择是[react-testing-library](https://github.com/testing-library/react-testing-library),它在最近的时间内迅速增长了人气。还值得使用[jest-dom](https://github.com/testing-library/jest-dom)库扩展测试的表达能力。
0 commit comments