diff --git a/tldr/ng-test b/tldr/ng-test new file mode 100644 index 00000000..68625625 --- /dev/null +++ b/tldr/ng-test @@ -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: . + +- 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` diff --git a/tldr/zsh b/tldr/zsh index a55661a8..811ad5bf 100644 --- a/tldr/zsh +++ b/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]}}`