3 Star 3 Fork 0

热门极速下载/calendso

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setupVitest.ts 408 Bytes
一键复制 编辑 原始数据 按行查看 历史
import matchers from "@testing-library/jest-dom/matchers";
import ResizeObserver from "resize-observer-polyfill";
import { vi, expect } from "vitest";
import createFetchMock from "vitest-fetch-mock";
global.ResizeObserver = ResizeObserver;
const fetchMocker = createFetchMock(vi);
// sets globalThis.fetch and globalThis.fetchMock to our mocked version
fetchMocker.enableMocks();
expect.extend(matchers);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_trending/calendso.git
git@gitee.com:mirrors_trending/calendso.git
mirrors_trending
calendso
calendso
main

搜索帮助