Skip to content

Adding installJestDom and installUserEvent as option to the ng-add schematic #478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
enabling show terminal question for ng-add properties: installJestDom…
…, installUserEvent
  • Loading branch information
vndrzrfshDXR1 committed Aug 6, 2024
commit 32157d5e1a6abf0e1b7b1a5de60129fdd0f93f75
14 changes: 12 additions & 2 deletions projects/testing-library/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,22 @@
"installJestDom": {
"type": "boolean",
"description": "Would you like to install jest-dom?",
"default": false
"$default": {
"$source": "argv",
"index": 0
},
"default": false,
"x-prompt": "Would you like to install jest-dom?"
},
"installUserEvent": {
"type": "boolean",
"description": "Would you like to install user-event?",
"default": false
"$default": {
"$source": "argv",
"index": 1
},
"default": false,
"x-prompt": "Would you like to install user-event?"
}
},
"additionalProperties": false,
Expand Down