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
Jest supports both camelCase as dashed arguments. Angular CLI only supports dashed argument. vscode-jest uses camelcase.
While I understand this is not an issue originating from vscode-jest, the solution can be pretty simple and should not matter for those not using angular anyway.
Environment
vscode-jest version
: 5.0.0node -v
: v18.10.0npm -v
oryarn --version
: yarn 1.22.19npm ls jest
ornpm ls react-scripts
(if you haven’t ejected):yarn run test --bail --max-workers=2
Prerequisite
npm run test
ornode_modules/.bin/jest
)yarn run test
Steps to Reproduce
Yarn run test is an alias for
ng test
, which, in my case, uses the jest builder fromhttps://github.com/just-jeb/angular-builders.
The relevant snippet from my
angular.json
isJest supports both camelCase as dashed arguments. Angular CLI only supports dashed argument. vscode-jest uses camelcase.
While I understand this is not an issue originating from vscode-jest, the solution can be pretty simple and should not matter for those not using angular anyway.
See https://github.com/just-jeb/angular-builders/blob/master/MIGRATION.MD#jest-builder for more info
The text was updated successfully, but these errors were encountered: