How to use the @vue/test-utils.Wrapper.prototype function in @vue/test-utils

To help you get started, we’ve selected a few @vue/test-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mcibique / vue-testing-examples / test / unit / utils / tid.js View on Github external
import { Wrapper, WrapperArray } from '@vue/test-utils';

Wrapper.prototype.tid = function (selector) {
  return this.find(`[tid~="${selector}"]`);
};

Wrapper.prototype.tids = WrapperArray.prototype = function (selector) {
  return this.findAll(`[tid~="${selector}"]`);
};