Page MenuHomePhabricator

Ensure test mutations only perform reactivity-friendly changes
Closed, ResolvedPublic

Event Timeline

Jakob_WMDE moved this task from Doing to To Do on the Wikidata-Termbox-Iteration-14 board.
Jakob_WMDE subscribed.

I failed to find a good solution for this. The suggested way to go appears to be to make sure nothing breaks by having good e2e coverage, which is a little unsatisfying. I could imagine coming up with some complicated test helper specifically for mutations but am hesitant to invest a lot of time into that.

Pablo-WMDE moved this task from To Do to Doing on the Wikidata-Termbox-Iteration-14 board.

Will look into it a short bit and dismiss it if I also fail to make a suggestion.

Looked into the "complicated test helper specifically for mutations" which through a proxy could recursively inspect set and defineProperty calls, would have to be able to re-attach itself to replaced properties, and also be able to tell apart vanilla calls from modification correctly run through Vue.set(). It's not happening.