Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: testing-library/react-hooks-testing-library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: testing-library/react-hooks-testing-library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: alpha
Choose a head ref
  • 1 commit
  • 7 files changed
  • 3 contributors

Commits on Sep 19, 2021

  1. feat(async-utils): async utils advance fake timer automatically when …

    …waiting
    
    Fixes #631
    
    * add jestFakeTimersAreEnabled and use it to detect faketimer in createTimeoutController (#688)
    * fix fakeTimer problem
    * add new fakeTimer test and revise the function
    * add advanceTime
    * revise the advanceTime
    * use  jest.advanceTimersByTime
    * change timeout type
    * fix converage and revise type
    * test(fake-timers): add more tests to test suite for fake timers
    * fix the code after code review and clean up
    * fix the test timeout is false
    * clean up
    * fix coverage
    * add skip for pass checkers
    * add comment
    * test(async-utils): enable test to test CI fix
    * test(async-utils): combine fake timer tests with async tests
    * refactor(async-utils): Move DEFAULT_TIMEOUT out of timeout controller
    * refactor(async-utils): move fake timer advancement into seperate utility
    * refactor(async-utils): simplify fake timer advancement logic
    * docs: add chris110408 as a contributor for code
    * refactor(async-utils): only advance timers on a single timeoutController
    
    BREAKING CHANGE: tests that used to manually advance fake timers and use async utilities may now
    fail as timer would advance further
    
    
    Co-authored-by: Lei Chen <leichen@Leis-MacBook-Pro.local>
    Co-authored-by: Michael Peyper <mpeyper7@gmail.com>
    3 people authored Sep 19, 2021
    Configuration menu
    Copy the full SHA
    732ec46 View commit details
    Browse the repository at this point in the history
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy