Useful little script that shortcuts the nxtest cmd line.
nxtest <target-module> [options]
--skip-nx-cache--code-coverage
| #!/bin/sh | |
| # Check if target-module argument was provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: nxtest <target-module> [options]" | |
| exit 1 | |
| fi | |
| # Extract target-module argument | |
| target_module="$1" | |
| shift | |
| # Run nx test command with provided target-module, options, and additional arguments | |
| nx test "$target_module" --skip-nx-cache --code-coverage "$@" |