jest express:用于通过Jest测试的Mock Express 源码
笑话快车 Mock Express用于与Jest进行测试 其他 express() 如何设置要在Jest中使用的应用程序: jest . mock ( 'express' , ( ) => { return require ( 'jest-express' ) ; } ) ; express.json() 使用此API的方法: expect ( express . json ) . toHaveBeenCalledWith ( [ options ] ) ; express.static() 使用此API的方法: expect ( express . static ) .
下载地址
用户评论