You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is expected that storyshots takes a snapshot of the 'Button.stories.svelte '. But only 'Button.stories.js' is working.
Screenshots and/or logs
console.warn
Unexpected error while loading ./stories/Button.stories.svelte: SyntaxError: Unexpected token '<'
at Object.warn (node_modules/@storybook/client-logger/dist/cjs/index.js:67:65)
at node_modules/@storybook/core-client/dist/cjs/preview/loadCsf.js:92:34
at Array.forEach (<anonymous>)
at node_modules/@storybook/core-client/dist/cjs/preview/loadCsf.js:85:20
at Array.forEach (<anonymous>)
at node_modules/@storybook/core-client/dist/cjs/preview/loadCsf.js:84:12
at ConfigApi.configure (node_modules/@storybook/client-api/dist/cjs/config_api.js:26:7)
PASS ./storybook.test.js
Storyshots
Example/Button-js
✓ Large (16 ms)
✓ Primary (4 ms)
✓ Secondary (4 ms)
✓ Small (4 **ms)**
Describe the bug
I'am using svelte to describe my stories, but storyshots doesn't work with this syntax, only works with .js and .ts files.
Steps to reproduce the behavior
"^.+\\.stories\\.svelte$": "@storybook/addon-svelte-csf/dist/cjs/jest-transform"
to the jest transform mapnpm test storybook.test.js
Expected behavior
It is expected that storyshots takes a snapshot of the 'Button.stories.svelte '. But only 'Button.stories.js' is working.
Screenshots and/or logs
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: