Closed santilp95 closed 1 year ago
Hey! There are two things I recommend to solve this:
thanks but the package.json have the flag "-p" "scripts": { "build": "next build", "build-storybook": "build-storybook", "chromatic": "npx chromatic --project-token=6110679b89b3", "dev": "next dev", "start": "next start", "export": "next export", "format": "prettier --write \"src/*/.{js,jsx,ts,tsx}\"", "lint": "eslint --fix \"src/*/.{js,jsx,ts,tsx}\"", "storybook": "start-storybook -p 6006", "test": "jest --watch", "test:ci": "jest --ci" },
My bad, then it's -s
, stands for "static". -s ./public
is what you need.
Sorry for my bad english but this answer doesn't work my
preview.js
is thisbut the console in firefox and chrome said
I tried with Mock Service Worker and execute
npx msw init public/
but doesnt work , the react query is work when the api is ON, but I need to creaate and put the mockPlease help me to create correct mock
my
handler.ts
: I tried to create mock in two ways but doesnt wotk this same handler I put in storybook but doens't workMy component is :
the hook is next:
and storybook is
Why
mockServiceWorker
not read in the browser and how put mock in storybook? , thanks