Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      request #35125 Explicitly import jest functions
    Infos
    #35125
    Joris MASSON (jmasson)
    2026-09-01 10:55
    2023-11-14 12:17
    36773
    Details
    Explicitly import jest functions

    Back when we were using Jasmine, testing functions (such as expect, describe, it, etc.) were global and "magically injected" by the test runner. Jest did the same thing, which made it easier to switch.

    I discovered that Jest 26 introduced @jest/globals, which makes it possible to explicitly import testing functions. Since vitest requires such imports, opting-in gradually to @jest/globals will make our work easier when switching to vitest.

    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2026-09-01
    Attachments
    Empty
    References
    Referencing request #35125
    Referenced by request #35125

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2026-09-01 10:55

    All packages were moved to vitest


    • Status changed from Under implementation to Closed
    • Connected artifacts
    • Close date set to 2026-09-01