Skip to content
View quasicomputational's full-sized avatar

Block or report quasicomputational

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. mega mega Public

    Haskell 2

  2. faking-promises.md faking-promises.md
    1
    Being able to flush promise resolution (or rejection) in tests is really, really handy, and [even essential sometimes](https://github.com/facebook/react/issues/14775). [Jest has an open issue for this](https://github.com/facebook/jest/issues/2157) but I'm impatient.
    2
    
                  
    3
    Setting this up in userland is possible but non-trivial - an adventure, even. I'll lay out what I had to do for any future intrepid types. I'll try to explain the reasoning for all of this and have nothing be magical.
    4
    
                  
    5
    The over-all target is to do task scheduling entirely in userland so that the task queue can be synchronously run to exhaustion. This entails faking timers and swapping out the native promise implementation for one that'll use the faked timers. All of this will be assuming you're using Jest, but the general ideas are test library agnostic.
  3. parcel-plugin-import-as-url parcel-plugin-import-as-url Public

    JavaScript 1

  4. search-suggestion-extensions search-suggestion-extensions Public

    Shell