• 
      

    Make it posible to import jasmine.

    Review Request #12935 — Created April 4, 2023 and submitted — Latest diff uploaded

    Information

    Review Board
    release-6.x

    Reviewers

    Test files using jasmine were extremely ugly with lots of errors,
    because all of the jasmine methods were just loaded as globals. This
    change adds the relevant rollup configuration so that we can import
    those methods and properly have them get mapped to the items on
    window.

    This also fixes the package dependency to be jasmine-core, which is
    the correct name on npm. The jasmine npm package is a CLI tool for
    running tests, rather than the library.

    Used this in conjunction with changes that did
    import { ... } from 'jasmine' and saw that all unit tests ran
    correctly.

    Commits

    Files