No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Unit test snapshot update not working

    CLI
    1
    1
    169
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      David5446 last edited by

      Hi
      I’ve setup jest for unit tests and added snapshots. Now I changed a component the test fails, as expected. But when I try to update the snapshot it doesn’t work.

      $ quasar test --unit jest
      snapshot failed from 1 test suite. Inspect your code changes or re-run jest with -u to update them.

      I tried…
      $ quasar test --unit jest -u
      $ quasar test --unit jest --u
      $ quasar test --unit jest -update-snapshot

      But the snapshot doesn’t get updated. I guess its something obvious I’m missing.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post