当使用Jest执行单元测试时,错误TypeError: Cannot read property 'on' of undefined会失败(如果不进行测试,则运行良好,例如。用电子跑)。守则:import { ipcRenderer } from 'electron';
// some more imports
我正在我的TypeScript MicroService中运行一些Stripe代码测试:import Stripe from 'stripe'; apiVersion: '2020-03-02',但是,我一直认为构造函数没有定义:
**TypeError: stripe_1.default is not a