Robuta

https://cn.vitest.dev/guide/mocking/globals 模拟全局对象 | Vitest Next generation testing framework powered by Vite vitest