DEV Community 👩‍💻👨‍💻

Discussion on: Add testing to Vite

Collapse
keithn profile image
Keith Nicholas

I tried this from a freshly created vite/vue ts project and just ended up with

import { mount } from '@vue/test-utils';
^^^^^^

SyntaxError: Cannot use import statement outside a module

  at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1350:14)
Enter fullscreen mode Exit fullscreen mode