storybook-framework-cedarjs
Version:
Storybook for CedarJS
24 lines (23 loc) • 496 B
JavaScript
import AutoImport from "unplugin-auto-import/vite";
const autoImports = AutoImport({
// targets to transform
include: [
/\.[tj]sx?$/
// .ts, .tsx, .js, .jsx
],
// global imports to register
imports: [
{
"@cedarjs/testing/web": [
"mockGraphQLQuery",
"mockGraphQLMutation",
"mockCurrentUser"
]
}
],
// We provide our mocking types elsewhere and so don't need this plugin to generate them.
dts: false
});
export {
autoImports
};