mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 18:46:35 +00:00
Update cheatsheets
This commit is contained in:
38
tldr/ng-test
Normal file
38
tldr/ng-test
Normal 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`
|
||||
10
tldr/zsh
10
tldr/zsh
@@ -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]}}`
|
||||
|
||||
Reference in New Issue
Block a user