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
Running Sample.test.js works fine.
Running storybook.test.js (created following tutorial instructions) fails with: "Jest encountered an unexpected token"
Details: .../node_modules/@storybook/svelte/dist/cjs/client/preview/SlotDecorator.svelte:1
({"Object.":function(module,exports,require,__dirname,__filename,global,jest){<script>
^
It appears that the precompile of the svelte file isn't happening.
I tried svelte-jester as an alternative (to jest-transform-svelte) and got these same results.
Using Storyshots auto testing fails
Using and following the Svelte tutorial:
https://storybook.js.org/tutorials/intro-to-storybook/svelte/en/simple-component/
Running Sample.test.js works fine.
Running storybook.test.js (created following tutorial instructions) fails with: "Jest encountered an unexpected token"
Details: .../node_modules/@storybook/svelte/dist/cjs/client/preview/SlotDecorator.svelte:1
({"Object.":function(module,exports,require,__dirname,__filename,global,jest){<script>
^
It appears that the precompile of the svelte file isn't happening.
I tried svelte-jester as an alternative (to jest-transform-svelte) and got these same results.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I believe this wouldn't happen if the precompile of the .svelte files occurred as expected so Jest was being fed JS as it requires.
The text was updated successfully, but these errors were encountered: