import { afterAll, afterEach } from 'vitest'; import { setupServer } from 'msw/node'; import { http, HttpResponse } from 'msw'; const server = setupServer( http.post(`https://api.openai.com/v1/chat/completions`, () => HttpResponse.json({ choices: [ { message: { content: 'Summary of the article.', }, }, ], }) ), http.get(`http://rsshub.test/config`, () => HttpResponse.json({ UA: 'test', }) ), http.get(`http://rsshub.test/buildData`, () => HttpResponse.text(`
`) ), http.get(`https://mp.weixin.qq.com/rsshub_test/wechatMp_fetchArticle`, () => HttpResponse.text( '\n' + '\n' + '\n' + '\n' + '\n' + '