Mocking Modules
TODO: Write this article. Interested? Open an issue, let’s chat!
Not directly related to Vue testing, more specific to Jest. Jest is used heavily throughout this handbook, though, and becoming widely adopted in the industry, so I think it deserves a section.
Some ideas:
- Reference the sections of the existing guide using Jest
- Talk about the different kind of mocks and their use cases for Vue testing
- Manual mocks
- ES6 class mocks
- automatic mock
- calling
mockImplentation
?
Ref: https://jestjs.io/docs/en/es6-class-mocks#the-4-ways-to-create-an-es6-class-mock
当前内容版权归 lmiller1990 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 lmiller1990 .