nx/docs/default/api-angular/generators/karma-project.md
2022-01-05 16:23:44 -05:00

37 lines
629 B
Markdown

---
title: '@nrwl/angular:karma-project generator'
description: 'Adds Karma configuration to a project.'
---
# @nrwl/angular:karma-project
Adds Karma configuration to a project.
## Usage
```bash
nx generate karma-project ...
```
By default, Nx will search for `karma-project` in the default collection provisioned in `workspace.json`.
You can specify the collection explicitly as follows:
```bash
nx g @nrwl/angular:karma-project ...
```
Show what will be generated without writing to disk:
```bash
nx g karma-project ... --dry-run
```
## Options
### project (_**required**_)
Type: `string`
The name of the project.