Jest 可帮你实现无痛的JavaScript 单元测试支持,由Facebook 推出。 测试代码: // __tests__/sum-test.js jest.dontMock('../sum'); describe('sum', function() ...
確定! 回上一頁