Update cheatsheets

This commit is contained in:
ivuorinen
2026-02-09 00:28:26 +00:00
parent a9c8ccc0e2
commit 4d189f50f5
2 changed files with 43 additions and 5 deletions

38
tldr/ng-test Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ng test
> Run unit tests in a project.
> Note: Some commands might require additional packages such as Vitest.
> More information: <https://angular.dev/cli/test>.
- Run unit tests:
`ng {{[t|test]}}`
- Run unit tests using a specific configuration:
`ng {{[t|test]}} {{[-c|--configuration]}} {{development|production|...}}`
- Specify the browsers to use for test execution:
`ng {{[t|test]}} --browsers {{firefox|webkit|chromium}}`
- Enable code coverage:
`ng {{[t|test]}} --coverage`
- Generate a coverage report in a specific format:
`ng {{[t|test]}} --coverage --coverage-reporters {{cobertura|html|json|...}}`
- Enable debug mode for tests:
`ng {{[t|test]}} --debug`
- List all discovered test files without building or running tests:
`ng {{[t|test]}} --list-tests`

View File

@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Check a specific script for syntax errors without executing it:
`zsh --no-exec {{path/to/script.zsh}}`
`zsh {{[-n|--no-exec]}} {{path/to/script.zsh}}`
- Execute specific commands from `stdin`:
@@ -31,12 +31,12 @@ source: https://github.com/tldr-pages/tldr.git
- Execute a specific script, printing each command in the script before executing it:
`zsh --xtrace {{path/to/script.zsh}}`
`zsh {{[-x|--xtrace]}} {{path/to/script.zsh}}`
- Start an interactive shell session in verbose mode, printing each command before executing it:
`zsh --verbose`
`zsh {{[-v|--verbose]}}`
- Execute a specific command inside `zsh` with disabled glob patterns:
- Start Zsh without loading user level configuration (e.g. `~/.zshrc`):
`noglob {{command}}`
`zsh {{[-f|--no-rcs]}}`