• 
      

    Update jasmine-suites to work with Jasmine 4.6.

    Review Request #12928 — Created March 29, 2023 and submitted

    Information

    jasmine-suites
    master

    Reviewers

    jasmine-suites was originally written for Jasmine 1.x, and has managed
    to survive up through 3.5. However, it does not work with the latest 4.6
    release, due to internal changes with this no longer representing the
    current suite in a call to describe().

    To address this, we simply monkey-patch the SuiteBuilder, storing the
    current suite being operated on. We can then reference that when needed
    during building of the suites.

    Successfully used this with multiple suites on Jasmine 4.6.

    Summary ID
    Update jasmine-suites to work with Jasmine 4.6.
    jasmine-suites was originally written for Jasmine 1.x, and has managed to survive up through 3.5. However, it does not work with the latest 4.6 release, due to internal changes with `this` no longer representing the current suite in a call to `describe()`. To address this, we simply monkey-patch the `SuiteBuilder`, storing the current suite being operated on. We can then reference that when needed during building of the suites.
    b92a489cc98fbb9dc407bec2c3d6c48d41d8db2f
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed