Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: testing-library/angular-testing-library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v11.0.0-beta.2
Choose a base ref
...
head repository: testing-library/angular-testing-library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v11.0.0-beta.3
Choose a head ref
  • 2 commits
  • 8 files changed
  • 2 contributors

Commits on Nov 26, 2021

  1. docs: add selector with attribute example (#264)

    Closes #263
    mleimer authored Nov 26, 2021
    Configuration menu
    Copy the full SHA
    224e550 View commit details
    Browse the repository at this point in the history
  2. 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,
      },
    });
    ```
    timdeschryver authored Nov 26, 2021
    Configuration menu
    Copy the full SHA
    4c81ed9 View commit details
    Browse the repository at this point in the history
Loading