Skip to content

Commit 9c603d8

Browse files
authored
Update part5c.md: a file suffix error
Change "Note.test.js" to "Note.test.jsx". Otherwise, a RollupError will occur during testing.
1 parent 2338fa1 commit 9c603d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/5/zh/part5c.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ const Note = ({ note, toggleImportance }) => {
103103

104104
### Rendering the component for tests
105105

106-
<!-- We will write our test in the <i>src/components/Note.test.js</i> file, which is in the same directory as the component itself. -->
107-
我们将在与组件本身位于同一目录的 _src/components/Note.test.js_ 文件中编写测试。
106+
<!-- We will write our test in the <i>src/components/Note.test.jsx</i> file, which is in the same directory as the component itself. -->
107+
我们将在与组件本身位于同一目录的 _src/components/Note.test.jsx_ 文件中编写测试。
108108

109109
<!-- The first test verifies that the component renders the contents of the note: -->
110110
第一个测试验证组件是否呈现了注释的内容:

0 commit comments

Comments
 (0)