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

feat!: local types, supporting jest, @jest/globals, vitest #511

Merged
merged 3 commits into from
Aug 13, 2023

Commits on Aug 12, 2023

  1. feat!: local types, supporting jest, @jest/globals, vitest

    Moves matcher types back into this package and adds support for
    @jest/globals and vitest.
    
    BREAKING CHANGE: Removes the extend-expect script. Users should use
    the default import path or one of the new test platform-specific
    paths to automatically extend the appropriate "expect" instance.
    
    extend-expect was not documented in the Readme, so this change should
    have minimal impact.
    
    Users can now use the following import paths to automatically extend
    "expect" for their chosen test platform:
    
    - @testing-library/jest-dom - jest (@types/jest)
    - @testing-library/jest-dom/jest-globals - @jest/globals
    - @testing-library/jest-dom/vitest - vitest
    
    For example:
    
    import '@testing-library/jest-dom/jest-globals'
    
    Importing from one of the above paths will augment the appropriate
    matcher interface for the given test platform, assuming the import
    is done in a .ts file that is included in the user's tsconfig.json.
    
    It's also (still) possible to import the matchers directly without
    side effects:
    
    import * as matchers from '@testing-library/jest-dom/matchers'
    jgoz committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    292c582 View commit details
    Browse the repository at this point in the history
  2. Update kcd-scripts

    jgoz committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    478a796 View commit details
    Browse the repository at this point in the history
  3. Drop node < 14

    jgoz committed Aug 12, 2023
    Configuration menu
    Copy the full SHA
    85dbd5b View commit details
    Browse the repository at this point in the history