vite-plugin-storybook-nextjs
Version:
This is a Vite plugin that allows you to use Next.js features in Vite. It is the basis for `@storybook/experimental-nextjs-vite` and should be used when running portable stories in Vitest.
31 lines (26 loc) • 824 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var test = require('storybook/test');
// src/plugins/next-mocks/alias/cache/index.ts
var revalidatePath = test.fn().mockName(
"next/cache::revalidatePath"
);
var revalidateTag = test.fn().mockName(
"next/cache::revalidateTag"
);
var unstable_cache = test.fn().mockName("next/cache::unstable_cache").mockImplementation((cb) => cb);
var unstable_noStore = test.fn().mockName(
"next/cache::unstable_noStore"
);
var cacheExports = {
unstable_cache,
revalidateTag,
revalidatePath,
unstable_noStore
};
var cache_default = cacheExports;
exports.default = cache_default;
exports.revalidatePath = revalidatePath;
exports.revalidateTag = revalidateTag;
exports.unstable_cache = unstable_cache;
exports.unstable_noStore = unstable_noStore;