UNPKG

@augment-vir/test

Version:

A universal testing suite that works with Mocha style test runners _and_ Node.js's built-in test runner.

9 lines (8 loc) 303 B
import { fixture } from '@open-wc/testing-helpers'; import { html } from 'element-vir'; export async function renderElement(elementDefinition, ...args) { const instance = await fixture(html ` <${elementDefinition.assign(args[0] || {})}></${elementDefinition}> `); return instance; }