You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Install dependencies and build. React Router uses `npm`, so you should too. If you install using `yarn`, unnecessary yarn lock files will be generated.
61
+
```bash
62
+
npm install
63
+
npm run build
64
+
```
65
+
48
66
## Development
49
67
50
-
-`npm test` starts a karma test runner and watch for changes
51
-
-`npm start` starts a webpack dev server that will watch for changes and build the examples
68
+
### Packages
69
+
70
+
React Router uses a monorepo to host code for multiple packages. These packages live in the `packages` directory.
71
+
72
+
### Testing
73
+
74
+
Calling `npm test` from the root directory will run **every** package's tests. If you want to run tests for a specific package, you should `cd` into that directory.
75
+
```bash
76
+
# all tests
77
+
npm test
78
+
# react-router-dom tests
79
+
cd packages/react-router-dom
80
+
npm test
81
+
```
82
+
React Router uses Jest to run its tests, so you can provide the `--watch` flag to automatically re-run tests when files change.
83
+
84
+
### Website
85
+
86
+
The code for the documentation website lives in the `website` directory. `cd` into there and call `npm start` to start a webpack dev server on `localhost:8080` that will watch for changes.
0 commit comments