Skip to content

Commit

Permalink
docs: add globals to cli info (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
dammy001 committed Feb 21, 2022
1 parent e75e2e5 commit d03bc30
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/guide/index.md
Expand Up @@ -101,21 +101,22 @@ You can specify additional CLI options like `--port` or `--https`. For a full li
| `-r, --root <path>` | Define the project root |
| `-c, --config <path>` | Path to config file |
| `-u, --update` | Update snapshots |
| `-w, --watch` | Watch mode |
| `-w, --watch` | Smart & instant watch mode |
| `-t, --testNamePattern <pattern>` | Run tests with names matching the pattern |
| `--ui` | Enable UI |
| `--open` | Open the UI automatically if enabled (default: true) |
| `--open` | Open the UI automatically if enabled (default: `true`) |
| `--api [api]` | Serve API, available options: `--api.port <port>`, `--api.host [host]` and `--api.strictPort` |
| `--threads` | Enable Threads (default: true) |
| `--threads` | Enable Threads (default: `true`) |
| `--silent` | Silent console output from tests |
| `--reporter <name>` | Select reporter: `default`, `verbose`, `dot` or `json` |
| `--outputFile <filename>` | Write test results to a file when the `--reporter=json` option is also specified |
| `--coverage` | Use c8 for coverage |
| `--run` | Do not watch |
| `--mode` | Override Vite mode (default: `test`) |
| `--global` | Inject APIs globally |
| `--global` | Inject APIs globally `depreciated` use `--globals` |
| `--globals` | Inject APIs globally |
| `--dom` | Mock browser api with happy-dom |
| `--environment <env>` | Runner environment (default: node) |
| `--environment <env>` | Runner environment (default: `node`) |
| `--passWithNoTests` | Pass when no tests found |
| `--allowOnly` | Allow tests and suites that are marked as `only` (default: false in CI, true otherwise) |
| `-h, --help` | Display available CLI options |
Expand Down

0 comments on commit d03bc30

Please sign in to comment.