摘要: When we test asynchronous, we use Axios to get the response. install the Axios npm i axios Cause we already config the babel for presets, so we can di 阅读全文
posted @ 2022-02-18 11:12 鑫仔Alan 阅读(23) 评论(0) 推荐(0) 编辑
摘要: Note: Please check the prev blog to see the jest configuration. calculator.js const plus = (a, b) => { return a + b } const subtract = (a, b) => { ret 阅读全文
posted @ 2022-02-18 10:32 鑫仔Alan 阅读(27) 评论(0) 推荐(0) 编辑
摘要: Jest is a delightful JavaScript Testing Framework with a focus on simplicity. It works with projects using: Babel, TypeScript, Node, React, Angular, V 阅读全文
posted @ 2022-02-18 00:20 鑫仔Alan 阅读(25) 评论(0) 推荐(0) 编辑