Skip to content

Commit

Permalink
fix(schematics): add workingDirectory to schemas (#3473)
Browse files Browse the repository at this point in the history
Closes #3469
  • Loading branch information
timdeschryver authored Jun 28, 2022
1 parent e6dedd6 commit 50ea6b3
Show file tree
Hide file tree
Showing 16 changed files with 61 additions and 16 deletions.
5 changes: 4 additions & 1 deletion modules/data/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"type": "string",
"format": "path",
"description": "The path to the module.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/effects/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"type": "string",
"format": "path",
"description": "The path to create the effect.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"flat": {
"type": "boolean",
Expand Down
5 changes: 4 additions & 1 deletion modules/router-store/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"type": "string",
"format": "path",
"description": "The path to create the router store.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/action/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"type": "string",
"format": "path",
"description": "The path to create the component.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/component-store/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"type": "string",
"format": "path",
"description": "The path to create the component store.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/container/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"type": "string",
"format": "path",
"description": "The path to create the component.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/data/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"type": "string",
"format": "path",
"description": "The path to create the service.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/effect/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"type": "string",
"format": "path",
"description": "The path to create the component.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/entity/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"type": "string",
"format": "path",
"description": "The path to create the component.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/feature/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"type": "string",
"format": "path",
"description": "The path to create the feature.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/reducer/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"type": "string",
"format": "path",
"description": "The path to create the component.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/selector/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"type": "string",
"format": "path",
"description": "The path to create the selectors.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/schematics/src/store/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"type": "string",
"format": "path",
"description": "The path to create the component.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/store-devtools/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"type": "string",
"format": "path",
"description": "The path to create the state.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
5 changes: 4 additions & 1 deletion modules/store/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"type": "string",
"format": "path",
"description": "The path to create the state.",
"visible": false
"visible": false,
"$default": {
"$source": "workingDirectory"
}
},
"project": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ context('Full round trip', () => {
});

it('is possible to add books', () => {
cy.get('bc-book-preview').eq(2).click();
cy.get('bc-book-preview').eq(0).click();

cy.findByRole('button', { name: /add book to collection/i }).click();
cy.findByRole('button', { name: /add book to collection/i }).should(
Expand Down

0 comments on commit 50ea6b3

Please sign in to comment.