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(@jest/mock): Add withImplementation #13281

Merged
merged 16 commits into from Sep 23, 2022

Commits on Sep 19, 2022

  1. feat(@jest/mock): Add withImplementation

    For temporarily overriding mock implementations.
    jeppester committed Sep 19, 2022
    Copy the full SHA
    c4cb677 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2022

  1. Copy the full SHA
    dd2bb3c View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    bc2643b View commit details
    Browse the repository at this point in the history
  3. Fix incorrect usage of js tab

    Co-authored-by: Tom Mrazauskas <tom@mrazauskas.de>
    jeppester and mrazauskas committed Sep 20, 2022
    Copy the full SHA
    dcef50b View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    12fddb2 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    b74d73b View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

  1. Update packages/jest-mock/__typetests__/mock-functions.test.ts

    Co-authored-by: Tom Mrazauskas <tom@mrazauskas.de>
    jeppester and mrazauskas committed Sep 21, 2022
    Copy the full SHA
    bd99f78 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Update docs/MockFunctionAPI.md

    Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
    jeppester and SimenB committed Sep 23, 2022
    Copy the full SHA
    93087bc View commit details
    Browse the repository at this point in the history
  2. Update packages/jest-mock/README.md

    Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
    jeppester and SimenB committed Sep 23, 2022
    Copy the full SHA
    d252023 View commit details
    Browse the repository at this point in the history
  3. Update packages/jest-mock/src/__tests__/index.test.ts

    Remove redundant `async`
    
    Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
    jeppester and SimenB committed Sep 23, 2022
    Copy the full SHA
    c776293 View commit details
    Browse the repository at this point in the history
  4. Update packages/jest-mock/src/index.ts

    Change promise detection expression to bail out earlier for `null` and `undefined`
    
    Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
    jeppester and SimenB committed Sep 23, 2022
    Copy the full SHA
    20300d8 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    67a4671 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    1c0d3bd View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    7acd442 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    552989c View commit details
    Browse the repository at this point in the history
  9. use shared isPromise helper

    SimenB committed Sep 23, 2022
    Copy the full SHA
    51757a6 View commit details
    Browse the repository at this point in the history