1 Star 0 Fork 33

coding/vuepress-theme-hope

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.js 581 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mr.Hope 提交于 2021-06-05 15:15 . chore: add config files
const fs = require("fs");
const { resolve } = require("path");
module.exports = {
rootDir: resolve(__dirname),
collectCoverage: true,
globals: {
"ts-jest": {
tsconfig: "<rootDir>/tsconfig.json",
},
},
moduleNameMapper: {
"^dayjs/esm/(.*)$": "dayjs/$1",
},
projects: fs.readdirSync("./packages").map((folder) => ({
displayName: folder,
preset: "ts-jest/presets/js-with-babel",
transformIgnorePatterns: ["node_modules/(?!(@vuepress/client|dayjs)/)"],
testMatch: [`<rootDir>/packages/${folder}/__tests__/**/*.spec.{js,ts}`],
})),
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/improvecoding/theme.git
[email protected]:improvecoding/theme.git
improvecoding
theme
vuepress-theme-hope
main

搜索帮助