You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E.g.: Affected Jest tests are not running when using parameters like: npx nx affected --target=test --ci --code-coverage
Error message:
Somehow missleading: Nx no longer supports using positional arguments for base and head. Please use --base and --head instead.
Expected Behavior
Command works, or error message is meaningfull.
I found a workaround with double -- but that is not documented: npx nx affected --target=test -- --ci --code-coverage
Is this a regression? Yes, it works with nrwl@14.7.13
Steps to Reproduce
create nx monorepo with 15.0.1 and jest tests.
run npx nx affected --target=test --ci --code-coverage in terminal.
Failure Logs
npx nx affected --target=test --ci --code-coverage
nx.js affected
Run target for affected projects
Run command using --base=[SHA1] (affected by the committed, uncommitted and untracked changes):
--base Base of the current branch (usually main) [string]
or using --base=[SHA1] --head=[SHA2] (affected by the committed changes):
--base Base of the current branch (usually main) [string]
--head Latest commit of the current branch (usually HEAD) [string]
or using:
affected --target=test --base=main~1 --head=main Run tests for all the projects affected by the last commit on main
Find more information and examples at https://nx.dev/nx/affected
Nx no longer supports using positional arguments for base and head. Please use --base and --head instead.
Environment
Bug happend on
node 16 and node 18 in
powershell windows 11,
github pipeline ubuntu-latest
nrwl@workspace@15.0.1
The text was updated successfully, but these errors were encountered:
Current Behavior
E.g.: Affected Jest tests are not running when using parameters like:
npx nx affected --target=test --ci --code-coverage
Error message:
Somehow missleading:
Nx no longer supports using positional arguments for base and head. Please use --base and --head instead.
Expected Behavior
Command works, or error message is meaningfull.
I found a workaround with double
--
but that is not documented:npx nx affected --target=test -- --ci --code-coverage
Is this a regression? Yes, it works with nrwl@14.7.13
Steps to Reproduce
create nx monorepo with 15.0.1 and jest tests.
run
npx nx affected --target=test --ci --code-coverage
in terminal.Failure Logs
Environment
Bug happend on
node 16 and node 18 in
powershell windows 11,
github pipeline ubuntu-latest
nrwl@workspace@15.0.1
The text was updated successfully, but these errors were encountered: