chromaui / learnstorybook-code

Code for Learn Storybook
https://learnstorybook.com
MIT License
396 stars 1.21k forks source link

yarn test, yarn start Not Work #97

Open callor opened 1 year ago

callor commented 1 year ago

Hello Dear

I am learning https://storybook.js.org/tutorials/intro-to-storybook/react/en/get-started/

Among the contents of learning, **yarn start and yarn run*** are not executed. I can't find any related scripts anywhere in package.json.

intro-storybook-react-template leanstorybook-code

Thank you

jonniebigodes commented 1 year ago

Hey @callor thanks for taking the time to reach out to us with your issue. We appreciate it 🙏 ! If you're ok can you provide a bit more context on what you're experiencing and information about your environment (OS, package manager) so that we can take a look at it and if required adjust both the tutorial and template?

Looking forward to hearing from you.

Hope you have a fantastic weekend.

Stay safe

callor commented 11 months ago

Thank you In a Windows 11 environment, I am using the npm package manager. The npm version is 10.2.1.

x24ken commented 11 months ago

Why are the test and start scripts missing from the scripts section of the package.json file? The current scripts are as follows:

json Copy code "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "init-msw": "msw init public/" } Without these scripts, I am unable to execute commands like yarn test --watchAll or yarn start, which are typically used in React projects. Could you explain why these particular scripts are not included in this template and how I should proceed to run tests and start the application?