Skip to content
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

Publish Next Version #237

Merged
merged 1 commit into from Dec 22, 2021
Merged

Publish Next Version #237

merged 1 commit into from Dec 22, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 3, 2021

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

pleasantest@1.4.0

Minor Changes

  • #314 542f3f9 Thanks @calebeby! - Improve printing of HTML elements in error messages

    • Printed HTML now is syntax-highlighted
    • Adjacent whitespace is collapsed in places where the browser would collapse it
  • #265 2b92fbc Thanks @renovate! - Update @testing-library/dom to v8.11.1

    Read their release notes for all the versions between 8.1.0 and 8.11.1 to see the full changes.

    Notably, we have added the ability for TypeScript users to optionally specify an element type as a type parameter for DTL queries:

    import { withBrowser } from 'pleasantest';
    
    test(
      'changelog example',
      withBrowser(async ({ screen }) => {
        // ElementHandle<HTMLButtonElement>
        const button = await screen.getByRole<HTMLButtonElement>(/button/);
    
        // ElementHandle<HTMLButtonElement>[]
        const buttons = await screen.getAllByRole<HTMLButtonElement>(/button/);
      }),
    );

    The return type is automatically determined based on the specified element type. Since Pleasantest DTL queries return ElementHandles, the return type will be wrapped with Promise<ElementHandle<...>>. For queries which return arrays of elements, the singular version of the element type is accepted as the type parameter, and the return type will automatically be wrapped with Promise<Array<ElementHandle<...>>>.

  • #297 97e075c Thanks @renovate! - Update puppeteer to v13.0.0

  • #236 67a222f Thanks @calebeby! - Add accessibility snapshots feature: getAccessibilityTree. This feature can be used to ensure that changes to the accessibility structure of your applications are intentional and correct.

  • #327 dfc9620 Thanks @calebeby! - Add suggestion to error message when transformation plugin is missing for unrecognized file extensions

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch 7 times, most recently from 17fa892 to b882dc4 Compare September 9, 2021 00:02
@github-actions github-actions bot force-pushed the changeset-release/main branch 15 times, most recently from c76d576 to a3f79bc Compare September 29, 2021 19:14
@github-actions github-actions bot force-pushed the changeset-release/main branch 7 times, most recently from 3910a42 to dcfedf8 Compare October 18, 2021 23:30
@github-actions github-actions bot force-pushed the changeset-release/main branch 13 times, most recently from c105c06 to 077b684 Compare December 8, 2021 00:05
@github-actions github-actions bot force-pushed the changeset-release/main branch 13 times, most recently from 0fa8d0a to 6ce3f90 Compare December 21, 2021 22:52
@calebeby calebeby merged commit 287aead into main Dec 22, 2021
@calebeby calebeby deleted the changeset-release/main branch December 22, 2021 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant