来源:https://stackoverflow.com/questions/54217276/jest-how-to-stub-a-method-which-is-been-called-in-constructor-of-the-class 标签 angular unit-testing jestjs babeljs