Storybook preset for integrating with Enonic XP
Install the package in your project.
npm i --save @itemconsulting/preset-enonic-xp
Add the preset to your main.ts (or main.js) file.
import type { StorybookConfig } from "@storybook/server-webpack5";
const config: StorybookConfig = {
addons: [
'@itemconsulting/preset-enonic-xp'
],
};
export default config;
Unit tests can be run with the following command
npm run build && node --test