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

chore: Improve Jest tests with more precise assertions #1912

Merged
merged 1 commit into from
Dec 28, 2023

Commits on Dec 28, 2023

  1. Improve Jest tests with more precise toBe and toStrictEqual

    Avoid type coercion for assertions by using toBe, toBeNull, and
    toStrictEqual.
    
    These matchers are documented at:
    
    - https://jestjs.io/docs/expect#tobevalue
    - https://jestjs.io/docs/expect#tostrictequalvalue
    - https://jestjs.io/docs/expect#tobenull
    jdufresne authored and SethFalco committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    32cdc93 View commit details
    Browse the repository at this point in the history