•  
      request #44838 Graphs snapshot test should not depend on Storybook
    Infos
    #44838
    Joris MASSON (jmasson)
    2025-09-18 12:34
    2025-09-17 16:53
    46557
    Details
    Graphs snapshot test should not depend on Storybook

    We recently introduced a "graphs" plugin with a specialization of the pie chart library. With it, there is a Storybook story that showcases that pie chart. There is a Vitest unit test that uses the story to do some snapshot tests on it.

    The test does not need to depend on the story at all, as Vitest is perfectly capable of rendering it. Besides, since Vitest does not follow the build system configuration, it does not have the right jsdom environment, and it runs "watch" mode by default.

    We should move those tests to the graphs plugin and break the dependency on the story.

    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2025-09-18
    Attachments
    Empty
    References
    Referencing request #44838

    Follow-ups