Description
Following the forum thread, using this issue to kick off work on an official unit testing utility lib. We are planning to built on top of @eddyerburgh 's Avoriaz, since it seems to be the most mature one currently, and Edd has kindly offered to work on it. Of course, we would also like to pull in ideas from other community solutions and make this a collaborative effort, so I'm pinging some community members that might also be interested in contributing here: @callumacrae, @asselin, @jackmellis, @codebryo, @BosNaufal.
I think the first step is outlining what feature set we are aiming for - here's some high level goals:
- Two rendering modes: deep, real DOM vs. shallow, virtual DOM
- Both modes with ideally the same traversal / event simulation / assertion API
- Ability to easily stub component assets / router / store
- Ability to output a serialized snapshot for Jest snapshot testing
- Test runner agnostic
in the meanwhile, feel free to provide general feedback on some of the needs you've run into while unit testing Vue.
Also @vuejs/collaborators for any potential input.