Add wrapper type hints to product analytics code
Since Adds js/tsdocs definitions to js specs helpers (!104622 - merged) has merged, we now have the option to add type hints to our wrapper
variables in tests. This gives much nicer autocomplete/intellisense when working in test files (see that MR for more details!)
It would be a small change to add this type hint comment to all tests within the product analytics areas of the codebase and get these benefits.
Implementation plan
Replace all
let wrapper;
with
/** @type {import('helpers/vue_test_utils_helper').ExtendedWrapper} */
let wrapper;
within product analytics focused areas of the codebase.
- ee../javascripts/analytics/analytics_dashboards
- ee../javascripts/product_analytics
- ee../javascripts/vue_shared/customizable_dashboards
I'm also proposing we add the type hint going forwards to new specs
Edited by Elwyn Benson