armsRumElectronStub.ts 352 B

12345678910111213
  1. /** Vitest 用:替代 @arms/rum-electron,避免加载真实 electron(CJS 命名导出在 ESM 下失败) */
  2. function noop(): void {}
  3. const armsRumElectronStub = {
  4. init: async () => {},
  5. sendCustom: noop,
  6. sendEvent: noop,
  7. setConfig: noop,
  8. getConfig: () => ({}),
  9. instrumentTRPC: <T>(t: T) => t,
  10. };
  11. export default armsRumElectronStub;