How to use the @open-wc/testing.fixture function in @open-wc/testing

To help you get started, we’ve selected a few @open-wc/testing 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 apollo-elements / apollo-elements / packages / test-helpers / helpers.js View on Github external
async function createElementWithLitTemplate(...args) {
    const tagName = defineCE(getClass());
    const tag = unsafeStatic(tagName);
    const template = getTemplate(tag, ...args);
    const element = await fixture(template);
    return element;
  };

@open-wc/testing

Testing following open-wc recommendations

MIT
Latest version published 1 year ago

Package Health Score

81 / 100
Full package analysis