2 Star 0 Fork 0

lthIoy/ChatGPT-Next-Web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.ts 703 Bytes
一键复制 编辑 原始数据 按行查看 历史
Dogtiti 提交于 2024-08-06 18:03 . feat: jest
import type { Config } from "jest";
import nextJest from "next/jest.js";
const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: "./",
});
// Add any custom config to be passed to Jest
const config: Config = {
coverageProvider: "v8",
testEnvironment: "jsdom",
testMatch: ["**/*.test.js", "**/*.test.ts", "**/*.test.jsx", "**/*.test.tsx"],
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/$1",
},
};
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
export default createJestConfig(config);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lthIoy/ChatGPT-Next-Web.git
git@gitee.com:lthIoy/ChatGPT-Next-Web.git
lthIoy
ChatGPT-Next-Web
ChatGPT-Next-Web
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385