Skip to content

Releases: cloudfour/pleasantest

v1.4.0

22 Dec 17:38
287aead
Compare
Choose a tag to compare

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

v1.3.0

01 Sep 17:22
9b7f5e7
Compare
Choose a tag to compare

Minor Changes

v1.2.0

25 Aug 17:27
a939966
Compare
Choose a tag to compare

Minor Changes

v1.1.1

18 Aug 19:35
b1d8eed
Compare
Choose a tag to compare

Patch Changes

v1.1.0

09 Aug 20:49
befb990
Compare
Choose a tag to compare

Minor Changes

  • #199 8e26bea Thanks @calebeby! - Make loadJS share error mapping logic with runJS

  • #190 9fb149d Thanks @calebeby! - Improve error message output for resolution errors and syntax errors/transform errors

Patch Changes

v1.0.0

27 Jul 19:59
1bf76c2
Compare
Choose a tag to compare

Major Changes

  • #186 33691ba Thanks @calebeby! - Release 1.0

    There are no breaking changes, we are just bumping the version to 1.0, so from now going forwards, we'll be following post-1.0 semver.

Patch Changes

v0.8.0

20 Jul 20:27
d1e8d34
Compare
Choose a tag to compare

Minor Changes

Patch Changes

v0.7.0

12 Jul 16:17
d184e28
Compare
Choose a tag to compare

Minor Changes

v0.6.2

07 Jul 22:51
ee05214
Compare
Choose a tag to compare

Patch Changes

v0.6.1

06 Jul 15:49
30cf519
Compare
Choose a tag to compare

Patch Changes

  • #128 c074d3d Thanks @calebeby! - Enable JSX parsing/transpilation for .js, .mjs, .cjs files (not just .jsx)