npm i
npm run start
npm run test
npm un build
npm i
npm run storybook
Stencil and storybook use jest as test tool but not the same version
Storybook as a sub folder offer a way to have a separate package.json
see storybook/stories/my-component.stories.(js|ts)
Just add those two lines in storybook/.storybook/preview.js
import { defineCustomElements } from '../../loader';
defineCustomElements();
loader is the stencil folder generate during the compilation