-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove RenderDirectiveOptions (#265)
BREAKING CHANGE: The template property is removed from the render options. Instead, you can pass it as the first argument of `render. BEFORE: ```ts await render(InputOutputComponent, { // 👇 this is deprecated template: '<app-fixture [value]="47" (sendValue)="sendValue($event)" (clicked)="clicked()"></app-fixture>', componentProperties: { sendValue: sendSpy, }, }); ``` AFTER: ```ts // 👇 Move the template in the first argument await render('<app-fixture [value]="47" (sendValue)="sendValue($event)" (clicked)="clicked()"></app-fixture>', { // 👇 Add the component to declarations declarations: [InputOutputComponent], componentProperties: { sendValue: sendSpy, }, }); ```
- Loading branch information
1 parent
224e550
commit 4c81ed9
Showing
4 changed files
with
8 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters