Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,17 @@ See the section about [running tests](https://facebook.github.io/create-react-ap
To run the test runner with emulators, use:

```bash
firebase emulators:exec --project sample --only firestore 'npm test'
Copy link
Member

Choose a reason for hiding this comment

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

Why this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Whoops, missed this one: basically as an easier copy/paster since we have the --only demonstrated below

firebase emulators:exec --project sample 'npm test'

firebase emulators:exec --project sample --only firestore 'npm test AddCollectionDialog.test.tsx'
```

To disable the Jest interactive mode use the flag `watchAll=false` like so:

```bash
firebase emulators:exec --project sample --only firestore 'npm test -- --watchAll=false'
```

If you get port conflict errors, make sure to stop other instances of the Firebase Emulator Suite (e.g. the one you've started for the development server above) and try again.

#### `npm run build`
Expand Down