mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 12:48:00 +08:00
committed by
Ian Schmitz
parent
a8af55dc7e
commit
8a12ddf67f
@@ -25,7 +25,7 @@ Jest will look for test files with any of the following popular naming conventio
|
||||
|
||||
The `.test.js` / `.spec.js` files (or the `__tests__` folders) can be located at any depth under the `src` top level folder.
|
||||
|
||||
We recommend to put the test files (or `__tests__` folders) next to the code they are testing so that relative imports appear shorter. For example, if `App.test.js` and `App.js` are in the same folder, the test just needs to `import App from './App'` instead of a long relative path. Colocation also helps find tests more quickly in larger projects.
|
||||
We recommend to put the test files (or `__tests__` folders) next to the code they are testing so that relative imports appear shorter. For example, if `App.test.js` and `App.js` are in the same folder, the test just needs to `import App from './App'` instead of a long relative path. Collocation also helps find tests more quickly in larger projects.
|
||||
|
||||
## Command Line Interface
|
||||
|
||||
|
||||
Reference in New Issue
Block a user