Any experience with pm+vitest? ("Adding different instances of a keyed plugin")

Anyone using vitest? (it runs my test suite /dramatically/ faster, btw)

On my first test run, I get a bunch of failures with the PM error “Adding different instances of a keyed plugin”. Oddly, if I re-run the tests they pass without this error.

I’ve checked that I don’t have multiple versions of prosemirror-state installed, and I’ve tried this suggestion:

Any ideas?