UNPKG

@lewiswright/storybook-addon-vis

Version:
21 lines (20 loc) 540 B
// src/client/vitest_proxy.ts var browserContext; var vitestSuite; if (globalThis.__vitest_browser__) { import('@vitest/browser/context').then((m) => { browserContext = m; }); import('vitest/suite').then((m) => { vitestSuite = m; }); } var commands = new Proxy({}, { get(_target, prop) { return browserContext?.commands?.[prop]; } }); var getCurrentTest = () => vitestSuite?.getCurrentTest(); export { commands, getCurrentTest }; //# sourceMappingURL=chunk-KMYH24SZ.js.map //# sourceMappingURL=chunk-KMYH24SZ.js.map