mirror of
https://github.com/notesynchelper/china-speedup.git
synced 2026-07-22 07:31:46 +00:00
国内加速的 Obsidian 社区插件商店: - 商店浏览/搜索/一键安装(仿原生 community browser) - relay-1..5 自动选最快节点(raceProbe + 缓存,relay-3..5 服务端预留) - 黑名单制 + 特殊导入制(服务端 marketplace-config.json 热更新) - obsidian:// 调起链接(白名单只接产品自有域,防恶意安装) - 插件自更新(临时文件→校验→备份→原子替换) - 48 个单测全绿,tsc 干净,esbuild 出包 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
418 B
JavaScript
15 lines
418 B
JavaScript
process.env.TZ = "UTC";
|
|
|
|
module.exports = {
|
|
testEnvironment: "node",
|
|
roots: ["<rootDir>/tests"],
|
|
moduleFileExtensions: ["ts", "js"],
|
|
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
testPathIgnorePatterns: ["/node_modules/"],
|
|
moduleNameMapper: {
|
|
"^obsidian$": "<rootDir>/src/__mocks__/obsidian.ts",
|
|
},
|
|
transform: {
|
|
"^.+\\.tsx?$": ["ts-jest", { tsconfig: { isolatedModules: true } }],
|
|
},
|
|
};
|