MCPcopy
hub / github.com/visgl/deck.gl / testLayer

Function testLayer

modules/test-utils/src/vitest.ts:19–28  ·  view source on GitHub ↗
(
  opts: Omit<TestLayerOptions<LayerT>, 'createSpy' | 'resetSpy'> & {
    createSpy?: SpyFactory;
    resetSpy?: ResetSpy;
  }
)

Source from the content-addressed store, hash-verified

17const defaultResetSpy: ResetSpy = spy => spy.mockRestore?.();
18
19export function testLayer<LayerT extends Layer>(
20 opts: Omit<TestLayerOptions<LayerT>, 'createSpy' | 'resetSpy'> & {
21 createSpy?: SpyFactory;
22 resetSpy?: ResetSpy;
23 }
24) {
25 const createSpy = opts.createSpy || defaultSpyFactory;
26 const resetSpy = opts.resetSpy || defaultResetSpy;
27 return testLayerCore({...opts, createSpy, resetSpy});
28}
29
30export function testLayerAsync<LayerT extends Layer>(
31 opts: Omit<TestLayerOptions<LayerT>, 'createSpy' | 'resetSpy'> & {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…