MCPcopy
hub / github.com/lit/lit / getTestElement

Function getTestElement

packages/task/src/test/task_test.ts:105–108  ·  view source on GitHub ↗
(config?: Partial<TaskConfig<unknown[], string>>)

Source from the content-addressed store, hash-verified

103 };
104
105 const getTestElement = (config?: Partial<TaskConfig<unknown[], string>>) => {
106 const A = defineTestElement(config);
107 return new A();
108 };
109
110 // TODO: the name of this function is confusing. It doesn't wait for the task
111 // to complete. It just waits a rAF. That's why it can be used to check that

Callers 1

task_test.tsFile · 0.70

Calls 1

defineTestElementFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…