Vue Test Utils: Errors messages about overwriting `methods`
heathharrelson opened this issue · 0 comments
heathharrelson commented
Vue Test Utils is warning about tests that overwrite components' methods
block:
ERROR LOG: '[vue-test-utils]: overwriting methods via the `methods` property is deprecated and will be removed in the next major version. There is no clear migration path for the `methods` property - Vue does not support arbitrarily replacement of methods, nor should VTU. To stub a complex method extract it from the component and test it in isolation. Otherwise, the suggestion is to rethink those tests.'
IIRC, this is done to work around the fact that I couldn't get Jasmine's mock clock to work correctly with debounce.
REDCap-Vizr/test/components/ChartForm_test.js
Lines 150 to 156 in 7daae98
These tests should be reworked to eliminate the errors.