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 6 months ago

Package Health Score

92 / 100
Full package analysis